Thanks for the clarification, Andrija. We're mostly using ESX here, but I do think it will work similarly, with the limit being applied to the vNIC. ________________________________ From: Andrija Panic <andrija.pa...@gmail.com> Sent: 22 November 2019 16:32 To: Riepl, Gregor (SWISS TXT) <gregor.ri...@swisstxt.ch> Cc: users <users@cloudstack.apache.org> Subject: Re: Limit network speed in per VM basis
Setting Network rate on the Compute Offering (or simply inherit the global setting and NOT explicitly set it on offering) will simply throttle the vnet (vNIC) speed of the VM's interface. This is done with "tc qdisc...." on linux (KVM) host. For the VR, what I do know (at least for KVM...) is that whatever is the network rate applied to the Public NIC of the VR, that same network rate is applied to all other NICs of the VR. This is also done via network rate set on the Service Offering for VR (or simply inheriting the global values) So, it's not possible to have i.e. 100 Mbps link to internet, while having 1000 Mbps routing between internal networks (talking about isolated/vpc networks) Again, this is for KVM specifically. I haven't tested this thoroughly with Vmware/XS so far, network throttling is implemented differently there (on the network/vSwitch level) On Fri, 22 Nov 2019 at 15:28, Riepl, Gregor (SWISS TXT) <gregor.ri...@swisstxt.ch<mailto:gregor.ri...@swisstxt.ch>> wrote: Is this really applied to each VM? I was under the impression that you could only limit network bandwidth on the network offering. How is this implemented exactly? Does it limit the NIC speed of the individual VMs, or does it only apply to external traffic on the VR? ________________________________ From: Andrija Panic <andrija.pa...@gmail.com<mailto:andrija.pa...@gmail.com>> Sent: 14 November 2019 10:14 To: users <users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>> Subject: Re: Limit network speed in per VM basis you can set network rate while creating the offering. for existing offerings, you need to dig into the DB: SELECT id FROM disk_offering WHERE NAME="<OFFERING-NAME-HERE>" UPDATE service_offering SET nw_rate="200" WHERE id=<ID-FROM-ABOVE-HERE> stop and start existing VMs to apply the new setting On Wed, 13 Nov 2019 at 21:12, Fariborz Navidan <mdvlinqu...@gmail.com<mailto:mdvlinqu...@gmail.com>> wrote: > It is not possible to modify network rate of a compute offering even if it > is a custom offering. Is there any setting key I can add to a VM's setting? > > On Wed, Nov 13, 2019 at 11:35 PM Andrija Panic > <andrija.pa...@gmail.com<mailto:andrija.pa...@gmail.com>> > wrote: > > > with KVM, you can set rate for each VM on the Compute Offering - or use > one > > of 2 global settings... > > > > On Wed, 13 Nov 2019 at 21:00, Fariborz Navidan > > <mdvlinqu...@gmail.com<mailto:mdvlinqu...@gmail.com>> > > wrote: > > > > > Hello, > > > > > > Is there any way in ACS to limit network speed in per VM basis? > > > > > > Thanks all > > > > > > > > > -- > > > > Andrija Panić > > > -- Andrija Panić -- Andrija Panić