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.

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
>>>
>>
> 

Reply via email to