Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU overprovisioning factor doesn't seem to work #9303

Open
tdtmusic2 opened this issue Jun 25, 2024 · 2 comments
Open

CPU overprovisioning factor doesn't seem to work #9303

tdtmusic2 opened this issue Jun 25, 2024 · 2 comments

Comments

@tdtmusic2
Copy link

ISSUE TYPE
  • Other
COMPONENT NAME
CPU overprovisioning
CLOUDSTACK VERSION
4.19.0.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

Setting the overprovisioning factor on a cluster does not seem to work as expected.

STEPS TO REPRODUCE
Set the overprovisioning factor on the cluster to 1
Try to create vms totaling a higher number of cpus than the actual number the host has
EXPECTED RESULTS
Cloudstack should not let me create new vms with offerings that exceed the number of actual cpus.
ACTUAL RESULTS
I could create a new vm without any issues.

If we follow the documentation, setting a value of 1 to the cpu overprovisioning factor of the cluster should only let me create vms totaling the actual ammount of cpus of the host, not more. So if the host has 64 cpus (hyperthreading enabled), I shouldn't be able to create, let's say, 2 vms with 40 cpus each, yet I can, and the dashboard reflects this, showing more than 100% cpus allocated. I don't know if this is expected behavior or I'm supposed to do something more than just setting that value, what I am trying to do is limit the availability of the host cpus to the actual, real, number.

Copy link

boring-cyborg bot commented Jun 25, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

@rajujith
Copy link
Collaborator

rajujith commented Jun 27, 2024

@tdtmusic2
If you have a single host with 64 vCPUs of 2000 MHz clock speed and you set CPU over the provisioning value of 1 at the cluster, cloudstack will calculate the total CPU capacity as 64 * 2000 * 1 = 128000. Cloudstack will allow you to deploy instances as long as their vCPU count* CPU MHZz value in the offering is less than the total (remaining capacity )value above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants