Answer the question
In order to leave comments, you need to log in
Nginx, VBox: Bad link emulation?
Is there a way using Nginx, Virtual Box, or Linux to emulate bad communication channels on the developer's local machine (for a CentOS6x64 server in Virtual Box) (low and floating upload, download speed, high latency, unstable latency, regular frequent breaks, etc. .)?
Answer the question
In order to leave comments, you need to log in
FreeBSD has a great thing about this - "ipfw pipe 1 config bw 128kbit/s delay 130ms". Read about the dummynet pipe, in general, if it is possible to put it between you and the FreeBSD server.
If you are on Linux - www.linuxfoundation.org/collaborate/workgroups/networking/netem
In general, everything is done by iptables, it can be configured to drop random packets, which emulates breaks on the channel very well, it is also configured using tc speed limits with burst. In nginx, there are request limits with burst, which may also be of interest.
In Nginx, you can set limit_rate to limit the rate. And to simulate jumps, write a simple script that will change this parameter and restart nginx.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question