Comments inline. On 26-Dec-2013, at 2:32 am, Kirk Kosinski <kirkkosin...@gmail.com> wrote:
> Hi, the rate limiting functionality is complicated. It can be affected > by the type of network (shared or isolated), the direction of the > traffic, the hypervisor running the instance or virtual router, the > Network Offering for the network, the Compute Offering for the instance, > the System Offering for the virtual router, and the > (vm.)network.throttling.rate parameters in Global Settings. > > So there are many places to check. It is explained in the docs: > > http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/network-rate.html > > I wrote much of this section, but I think it might be out of date. I > didn't know support for rate limiting with KVM had been added. I think > the example at the end might be wrong for KVM, but the rest should be valid. > Hi Kirk, - The primary interface did end up with the network speed as per the service offering. In my case, the service offering has a 2Gbps interface. - The secondary interface ended up with the network offering default, which is a 1Gbps service. <interface type='bridge'> <mac address='06:8b:22:00:00:57'/> <source bridge='breth0-65'/> <target dev='vnet2'/> <model type='virtio'/> <bandwidth> <inbound average='256000' peak='256000'/> <outbound average='256000' peak='256000'/> </bandwidth> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <interface type='bridge'> <mac address='02:00:60:ea:00:04'/> <source bridge='breth0-107'/> <target dev='vnet3'/> <model type='virtio'/> <bandwidth> <inbound average='128000' peak='128000'/> <outbound average='128000' peak='128000'/> </bandwidth> <alias name='net1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </interface> Looks to me that your docs (thanks for contributing them) is applicable for KVM too. Regards. > Best regards, > Kirk > > On 12/25/2013 06:11 AM, Du Jun wrote: >> @Nux @Marty >> As you can see, I use DefaultIsolatedNetworkOfferingWithSourceNatService and >> I update network rate to 20000Mbps. Meanwhile, I reboot the VMs. However, >> inbound and outbound value are all the same! >> root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep "inbound|outbound" >> <inbound average='25600' peak='25600'/> >> <outbound average='25600' peak='25600'/> >> >> Egress Default PolicyDenyAvailabilityRequiredCreated by systemYesSpecify >> VLANNoSpecify IP rangesNoConserve modeYesNetwork Rate (Mb/s)20000 Mb/sTraffic >> TypeGuest >> >> So, I feel confused about how Cloudstack limit the network rate for guest >> VMs. >> >> -- >> Best regards, >> DuJun >> >> >> 2013/12/25 Marty Sweet <msweet....@gmail.com> >> >>> I assume you are stopping and relaunching the VM. >>> >>> I would second Nux and say Network Offering. >>> >>> Marty >>> >>> >>> On Wed, Dec 25, 2013 at 11:49 AM, Nux! <n...@li.nux.ro> wrote: >>> >>>> On 25.12.2013 11:40, Du Jun wrote: >>>> >>>>> Hi Marty, >>>>> My problem is that even though I have update global settings about >>> network >>>>> rate, but inbound and outbound are not affected. Look like that: >>>>> root@cloudstack-ubuntu:~# virsh dumpxml i-2-3-VM | egrep >>>>> "inbound|outbound" >>>>> <inbound average='25600' peak='25600'/> >>>>> <outbound average='25600' peak='25600'/> >>>>> >>>>> No matter what I set for network rate in global settings, inbound and >>>>> outbound for VM are always the same! >>>>> >>>> >>>> As I said initially this may be bound to the network offering. Eg >>>> http://img.nux.ro/wj3C-Selection_008.png >>>> >>>> >>>> -- >>>> Sent from the Delta quadrant using Borg technology! >>>> >>>> Nux! >>>> www.nux.ro >>>> >>> >> -- @shankerbalan M: +91 98860 60539 | O: +91 (80) 67935867 shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, Bangalore - 560 055 Need Enterprise Grade Support for Apache CloudStack? Our CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/> offers the best 24/7 SLA for CloudStack Environments. Apache CloudStack Bootcamp training courses **NEW!** CloudStack 4.2 training<http://shapeblue.com/cloudstack-training/> 08/09 January 2014, London<http://shapeblue.com/cloudstack-training/> 13-17 January 2014, GLOBAL. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> 20-24 January 2014, GLOBAL. Instructor led, On-line<http://shapeblue.com/cloudstack-training/> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.