Using Linux tc to limit the outgoing bandwidth of a web server
Using Linux tc to limit the outgoing bandwidth of a web server
utcc.utoronto.ca6 pointsby LorenDB1 comments
Hacker News
tc qdisc replace dev eth0 root handle 1: cake bandwidth 4200mbit besteffort rtt 80ms nonat triple-isolate split-gso
The server is allowed 6tb/s but I don't want it to use all that. I lower to rtt to somewhere between 60ms and 80ms depending where I create the VM to optimize for the US. Default is 100ms.The same can be applied to inbound traffic if one so desires, just makes tcpdump messy if I use -i any.
modprobe ifb numifbs=1 && ip link set dev ifb0 up
tc filter add dev eth0 parent ffff: protocol ip u32 match u32 0 0 action mirred egress redirect dev ifb0 2>/dev/null
tc qdisc add dev ifb0 root handle 1: cake bandwidth 200mbit besteffort rtt 80ms nonat triple-isolate split-gso 2>/dev/nullby Bender
Write your take first — we'll ask for email only when you're ready to publish.
tc qdisc replace dev eth0 root handle 1: cake bandwidth 4200mbit besteffort rtt 80ms nonat triple-isolate split-gso
The server is allowed 6tb/s but I don't want it to use all that. I lower to rtt to somewhere between 60ms and 80ms depending where I create the VM to optimize for the US. Default is 100ms.The same can be applied to inbound traffic if one so desires, just makes tcpdump messy if I use -i any.
modprobe ifb numifbs=1 && ip link set dev ifb0 up
tc filter add dev eth0 parent ffff: protocol ip u32 match u32 0 0 action mirred egress redirect dev ifb0 2>/dev/null
tc qdisc add dev ifb0 root handle 1: cake bandwidth 200mbit besteffort rtt 80ms nonat triple-isolate split-gso 2>/dev/nullgithub.com · 64 points · 26 comments
tris.sherliker.net · 1072 points · 181 comments
streetcomplete.app · 761 points · 182 comments
allaboutcookies.org · 737 points · 969 comments
fightchatcontrol.eu · 645 points · 238 comments
gamefromscratch.com · 597 points · 533 comments