Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have ubuntu 12.04 and openvswitch and xen installed, and I know that limit traffic sent by xen domU can be using rate limit by xen netback or "ingress_policing" by openvswitch.

but because downloading some thing in the xen domUs may consume all of our bandwidth, it there a way to limit traffic receive by xen domUs ?

share|improve this question

migrated from stackoverflow.com Oct 8 '12 at 14:38

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 1 down vote accepted

finally we use this the limit incoming traffic to vm, it takes effect while vm user are downloading data from outside:

ovs-vsctl -- set port vps2 qos=@newqos -- --id=@newqos create qos type=linux-htb other-config:max-rate=5000000 queues=0=@q0 \
-- --id=@q0 create queue other-config:max-rate=5000000

and the ingress_policing will take effect with the traffic coming out from the vm:

ovs-vsctl set interface vps2 ingress_policing_rate=10000
ovs-vsctl set interface vps2 ingress_policing_burst=100
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.