traffic control daemon
go get github.com/kinvolk/tcd
./build.sh
sudo ./install.sh
tcd
with sudo ./bin/tcd
sudo rkt run kinvolk.io/aci/busybox:1.24 --exec ping -- 8.8.8.8
machinectl
sudo gdbus call --system \
--dest com.github.kinvolk.tcd \
--object-path /com/github/kinvolk/tcd \
--method com.github.kinvolk.tcd.Install \
rkt-a6bd320a-2978-4789-90ae-233d5a221932
sudo gdbus call --system \
--dest com.github.kinvolk.tcd \
--object-path /com/github/kinvolk/tcd \
--method com.github.kinvolk.tcd.ConfigureEgress \
rkt-a6bd320a-2978-4789-90ae-233d5a221932 \
10 0 800000 # latency: 10ms drop: 0% rate: 800000kbit
sudo gdbus call --system \
--dest com.github.kinvolk.tcd \
--object-path /com/github/kinvolk/tcd \
--method com.github.kinvolk.tcd.ConfigureIngress \
rkt-a6bd320a-2978-4789-90ae-233d5a221932 \
15 50 800000 # latency: 15ms drop: 50% rate: 800000kbit