F
F
Fader2014-12-05 13:15:24
Nginx
Fader, 2014-12-05 13:15:24

How to limit speed in Nginx depending on server channel load?

I use the limit_rate directive. I would like to improve a little and get a regular expression like this:
if ($bandthwich_load) {
set $limit_rate 128k;
}
Tell me how to bind a condition to a high load on the channel (excluding simultaneous peaks)? Suppose, when loading a channel at 70Mbit / s, do we limit it to 256k? at 90Mbit/s - 128k...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question