ricky73
Hot Shot
Hot Shot

trigger alarm to increase number or cpu

Can I set alarm in vSphere when specific vm is using more 3 cores of 4 ones?

0 Kudos
18 Replies
hussainbte
Expert
Expert

the same explanation applies for this as well..

you cannot quantify VM cpu utilization based on how many of the vCPUs it is using..

its a percentage value and there are other stats to monitor the performance.

***********

It doesn't mean that the vm is using 2 cores of 4.  its means that there is enough CPU time available for all 4 threads coming from the VM to get executed.

if the %ready value is high that means the vCPU threads are ready to run and waiting for CPU time on the actual physical core.

as long as these values are healthy there there is no issues with your vCPU allocation..

having said that over allocating vCPUs to VMs is also not good as there is additional scheduling overhead for every vCPU you add.

VMware recommends starting with 1 vCPU and increasing the value as per the needs. If you have concrete sizing done and believe that you will need 4 vCPU than its a design requirement

***********

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
ricky73
Hot Shot
Hot Shot

you cannot quantify VM cpu utilization based on how many of the vCPUs it is using

so how can I verify if VM is using more than 3 cpu and it's necessary to get only 2 vcpu instead of 4?

0 Kudos
ricky73
Hot Shot
Hot Shot

Can I create resource pool where to insert this vm and to set polices for cpu usage?

My scope is to verify if vm uses few or much cpu

0 Kudos
daphnissov
Immortal
Immortal

You'll need to use vROps for this. It has easily-configured alerts that can tell you when this threshold is met.

0 Kudos
ricky73
Hot Shot
Hot Shot

What percentage represents threshold in standard alarm of VM cpu usage? E.g. 75% for 2 minutes in VM with 4 vCPU?

75% is percentage of all cpu? or for single cpu?

0 Kudos
hussainbte
Expert
Expert

the below KB gives default vCenter CPU alarm details.

VMware Knowledge Base

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
daphnissov
Immortal
Immortal

vROps doesn't work the same way as vCenter alerts. You can customize them how you like.

0 Kudos
ricky73
Hot Shot
Hot Shot

Article you suggested shows what you have to make with cpu usage alarm but this one does not explain how it's measured, what percentage value is referencing to?

Cumulative vCPU or single vCPU?

If I had 2.6 GHz cores in host and the vm had n.4 vCPU, cpu usage of 75% is referencing to 2.6*4*75/100 GHz?

0 Kudos
hussainbte
Expert
Expert

If you could go through the below article..

although it explains the performance counter seen in esxtop (real-time performance monitoring tools from ESXi shell) it explains the % CPU Utilization and other counters in details.

hope that is not confusing.

ESXTOP - Yellow Bricks

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
GianniRodari
Contributor
Contributor

vROps is commercial or freeware product ?

0 Kudos
hussainbte
Expert
Expert

Its a licensed software.. if you by vSphere with operations management enterprise plus license for your ESXI host.. then you can use vRealize Operations manager standard version with it..

else you have to procure licenses for the same

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
GianniRodari
Contributor
Contributor

I have enterprise plus license, so where can I download please?

Thanks

0 Kudos
hussainbte
Expert
Expert

you have enterprise plus.. you need vsphere with operations manager enterprise plus..

there is difference. Smiley Sad

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
ricky73
Hot Shot
Hot Shot

Ok, unfortunately I have only Enterprise plus licences I noted my Vmware contract permits to download these software:

I see vRealize Operations Manager ...

Suggestions?!

0 Kudos
daphnissov
Immortal
Immortal

If you only have a vSphere Enterprise Plus license, you won't be able to do it.

0 Kudos
hussainbte
Expert
Expert

Being able to download software is a separate thing.

you can install it and check out the features for yourself.  the evaluation license can be used for 60 days I believe. It won't work after that

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
ricky73
Hot Shot
Hot Shot

Ok, I understand it... I don't know it exists dedicated license for vSphere with Operations Management.

Does it exist free tools or included into vSphere Ent Plus for monitoring VM ? I know only Esxtop + performance graph to check usage of vm resources.

0 Kudos
hussainbte
Expert
Expert

thats all from vsphere with what you have.. I don't know about any third party stuff and I wouldn't recommend something like that also... I believe vCenter alerts and esxtop should be sufficient to start with.

and if you get vRealize Operations manager as purchased product, there is a lot you can do..

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos