S
S
Stdit2012-04-06 16:26:03
Nginx
Stdit, 2012-04-06 16:26:03

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

5 answer(s)
V
Vlad Zhivotnev, 2012-04-06
@inkvizitor68sl

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

P
Puma Thailand, 2012-04-06
@opium

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.

D
Denis, 2012-04-06
@uscr

If you put Linux in VirtualBox, then you can achieve this using iptables .

K
Kirill Boldyrev, 2012-04-06
@usetester

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.

Y
YourChief, 2012-04-07
@YourChief

try slowhttptest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question