Which Option Helps to Restrict Bandwidth in Cloudlinux
Hi,
I didn't found the option in cloudlinux for restrict the bandwidth. Anyone can help me to find the option?
Thank You!
-
Hello, If you per account, CloudLinux has a solution for marking packages from lve Limits | Documentation And through tc you can set the rules and limitations. Thanks 0 -
Let us know if the answer from @skhristich helped or information on what you're trying to find specifically @sivajohn 0 -
Hello, I wanted to know how to limit a CloudLinux package bandwith but Can anyone explain a this matter little further? Best regards, 0 -
Hello @mlopez To clarify, CloudLinux does not actually limit bandwidth for a given LVE. bandwidth tracking is done at the LVE level, and thus configured there. However, one must use the TC application provided by iproute2. As described in the CloudLinux documentation at Limits Example: - As an example we create class with HTB qdiscs and rate 100mbit and class 1:10 will be used by default:
tc qdisc add dev eth3 root handle 1: htb default 10 tc class add dev eth3 parent 1: classid 1:1 htb rate 100mbit
- For class 1:1 we create two branches with rate 5 mbit and 10 kbit accordingly, with classid 1:10 and 1:20.
tc class add dev eth3 parent 1:1 classid 1:10 htb rate 5mbit tc class add dev eth3 parent 1:1 classid 1:20 htb rate 10kbit
- All packets marked with LVE id=2121 are processed by 10 kbit class.
tc filter add dev eth3 protocol ip parent 1: prio 1 handle 2121 fw flowid 1:20
To summarize, the system administrator must create a tc class(identified as 1:1 above), then branch it, and then set TC to filter traffic if it exceeds the rules put forth in a specific branch.0 -
Hi @cPDavidL, Thank you for your explanation. Now what's really clear to me is I need to learn a lot about TC and networking before using this. I don't know what HTB, qdiscs, 1:10 or fw are :eek: Regards! 0 -
@mlopez - that's what the documentation is for! No matter how much you know today, there's always more to know tomorrow. 0
Please sign in to leave a comment.
Comments
6 comments