VMware Cloud Community
cnidus
Contributor
Contributor

Cluster usagemhz.maximum greater than totalmhz.average....

Hi All,

I'm writing a cluster-capacity script to ballpark the number or "standard" VMs worth of capacity left in the environment. We are using vKernel products already, but want to verify some of the capacity numbers ourselves.

I was going to use the following base calculations.....

HA Overhead = FailureTolerance / Number of hosts

Available capacity(CPU) = (Totalmhz - (HA_Overhead * totalmhz) - usagemhz.maximum)

Available capacity(Mem) = (Totalmb - (HA_Overhead * totalmb) - usagemb.maximum)

However, I've hit a couple of snags..... firstly the stats I get through vCenter don't match the ones I get from powercli, 2nd: in vcenter the Usedmhz is greater than the totalmhz...

Any suggestions? I suspect its a result of the way things are aggregated.... but I'd like to confirm that and maybe get some suggestions as to how I might better do this.

Script, screenshot of one of the clusters and dump of the CPU stats attached.

Thanks in advance,

Doug

Douglas Youd Senior Virtualization Engineer zettagrid
Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

I don't seem to see the problems you mention.

Which vCenter version are you using ?

And which PowerCLI version ?

Get-PowerCLIVersion


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
cnidus
Contributor
Contributor

Hi LucD,

vCenter is 4.0 and all the ESX servers are 4.0U2.

I'll check the powercli version when I get back to the office on monday.

Thanks for the help so far.

Douglas Youd Senior Virtualization Engineer zettagrid
Reply
0 Kudos
cnidus
Contributor
Contributor

Hi LucD,

PowerCLI Version
----------------
VMware vSphere PowerCLI 4.1 build 264274

Really at a loss to explain this behavior... Any help is appreciated.

-Doug

Douglas Youd Senior Virtualization Engineer zettagrid
Reply
0 Kudos
LucD
Leadership
Leadership

That's the latest PowerCLI version.

The only difference is that I'm running against vCenter 4.1 and ESX 4.1.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos