Hello Palash,
Adding to what Gary said about the CPU speed question, you should put at
most the host's CPU speed that is returned in the "listHosts" API (You
can also check the host's CPU speed on the UI:
Infrastructure->Hosts->Select your host). This value is what ACS
considers to be the host's max CPU capability, if you try to create a VM
with a CPU speed higher than that, you'll get an "No destination found
for a deployment for VM instance" error.
About the "Network Rate" parameter, all network traffic will be restricted.
Best regards,
João Jandre
On 12/6/23 06:59, Gary Dixon wrote:
Hi Palesh
The CPU MHz value is part of the equation for determining the CPU
Shares a VM receives - you can see this as 'cputune' when you 'virsh
dumpxml <VM name>' on a running instance
It is calculated by "no. of CPU's allocated to the VM X CPU MHz value
divided by your CPU over-commit ratio"
So for example a VM using a compute offering with 24 CPU's at 2500MHZ
with an over-commit ratio of 3 would have a CPU Shares value of
24X2500/3 = 20000
There is an open issue about how this will affect KVM hosts running
Ubuntu 22.04 here https://github.com/apache/cloudstack/issues/6744 -
actually I see that support for cgroups v2 has now been added recently
Gary Dixon
Senior Technical Consultant
0161 537 4980 <tel:0161%20537%204980>
+44 7989717661 <tel:+44%207989717661>
gary.di...@quadris.co.uk
www.quadris.com
Innovation House, 12‑13 Bredbury Business Park
Bredbury Park Way, Bredbury, Stockport, SK6 2SN
-----Original Message-----
From: Palash Biswas <palash...@gmail.com>
Sent: Wednesday, December 6, 2023 5:23 AM
To: users@cloudstack.apache.org
Subject: Re: Question on Compute Offerings.
Hi Gary,
Sorry, I still cannot understand. Are you saying that specifying the
MHZ actually does not take any effect? Then what is the purpose of it?
Regards,
palash Biswas
On Tue, Dec 5, 2023 at 9:56 PM Gary Dixon
<gary.di...@quadris.co.uk.invalid>
wrote:
> Hi Palash
>
> The CPU in Mhz is a bit of a misnomer as it doesn't really relate to
> the actual CPU speed. It is used more as a CPU 'weight' and we set our
> value to '1' and then hide the 'CPU in MHZ' from the UI. It also
> relates to how CGroups on the underlying hypervisor are configured and
> in our case - Ubuntu 20.04 there is a hard coded value in libvirt so
> when we had a Compute offering with say 24 cores at 2000 MHZ we found
> we could no longer deploy more VM's using this compute offering once
> the libvirt cgroup limit was reached. It gets even worse in Ubuntu
> 22.04 as the hard coded libvirt cgroup value is much less.
> All of our running VM's still show the actual CPU speed in terms of
> Ghz when using compute offerings with a value of just 1 Mhz
>
>
> Gary Dixon
> Senior Technical Consultant
> 0161 537 4980 <0161%20537%204980>
> +44 7989717661 <+44%207989717661>
> gary.di...@quadris.co.uk
> http://www.q/
> uadris.com%2F&data=05%7C01%7CGary.Dixon%40quadris.co.uk%7C71759c80bdec
> 422fe3ed08dbf61ba764%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C6383
> 74370883026361%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l
> uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=g2EyilhT0jer
> QFRXSGi35U7JQ7nPiboe9PjFGJnpYy0%3D&reserved=0
> Innovation House, 12‑13 Bredbury Business Park Bredbury Park Way,
> Bredbury, Stockport, SK6 2SN -----Original Message-----
> From: Palash Biswas <palash...@gmail.com>
> Sent: Tuesday, December 5, 2023 12:57 PM
> To: users@cloudstack.apache.org
> Subject: Question on Compute Offerings.
>
> Hi Community,
>
> Question on Compute Offerings.
>
> - In the 'CPU (in MHZ)' section, does we put in the Base Clock Speed?
> Or the Max Clock speed of the CPU? |
> - Is the 'Network Rate (Mb/s) Parameter restrict only internet
bandwidth?
> Or does it also include traffic via Private Gateway (maybe to another
> datacenter)
>
> Thank You
>