Skip to content

Where to put code to artificially slow down min.io requests? #11672

Answered by harshavardhana
celan69 asked this question in Q&A
Discussion options

You must be logged in to vote

You should do this outside MinIO that use tc to do traffic control

# Refer to: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic
# Refer to: http://www.bomisofmab.com/blog/?p=100
# Refer: http://drija.com/linux/41983/simulating-a-low-bandwidth-high-latency-network-connection-on-linux/
# Setup the rate control and delay
sudo tc qdisc add dev lo root handle 1: htb default 12 
sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps 
sudo tc qdisc add dev lo parent 1:12 netem delay 1000ms

# Remove the rate control/delay
sudo tc qdisc del dev lo root

# To see what is configured on an interface, do this
sudo tc -s qdisc ls …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by harshavardhana
Comment options

You must be logged in to vote
1 reply
@klauspost
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants