OpenVZ Forum


Home » General » Support » *SOLVED* Per Vps traffic
*SOLVED* Per Vps traffic [message #4388] Sun, 09 July 2006 15:55 Go to next message
hello-world is currently offline  hello-world
Messages: 30
Registered: June 2006
Member
How do i find the traffic per vps. Is there any way i can calculate total traffic used by indivdual vpses, and is there some way to set hard limit on the usage?

Thanks.

[Updated on: Mon, 10 July 2006 21:18] by Moderator

Report message to a moderator

Re: Per Vps traffic [message #4400 is a reply to message #4388] Mon, 10 July 2006 07:52 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

This is how you can account per-VE traffic:
http://wiki.openvz.org/Traffic_accounting_with_iptables

This is how you can limit the bandwidth:
http://wiki.openvz.org/Traffic_shaping_with_tc

If you need to limit the traffic, i.e. disable the networking for a VE if it is above the limit, you need to do some scripting in order to achieve it, e.g. put some cron job which checks the current usage and blocks the traffic to/from VE if limits are exceeded. In other words, if you are not sure how to do it, hire some sysadmin or a geek who can.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Per Vps traffic [message #4420 is a reply to message #4400] Mon, 10 July 2006 14:06 Go to previous message
hello-world is currently offline  hello-world
Messages: 30
Registered: June 2006
Member


Hey, thanks,

I should done more research before asking the question.

Previous Topic: lsmod: QM_MODULES: Function not implemented
Next Topic: to add rpm packages for centos-4-i386
Goto Forum:
  


Current Time: Tue Jul 30 22:22:12 GMT 2024

Total time taken to generate the page: 0.02835 seconds