Welcome! Log In Create A New Profile

Advanced

dynamically rate_limit ?

September 01, 2015 08:55AM
Hi folks,

I'm after a way to dynamically adjust bandwidth in nginx.

Current vhost setup is:
maximum connections 10
max connection per client ip = 2
maximum rate per connection = 8Mbit

Ideally, 5 clients x 2 connections x 8Mbit rate = 80 Mbit = 10 clients x 1 connection x 8Mbit rate

What I would prefer is to set the limit_rate statement as a dynamical function of maximum shared bandwidth divided by the number of active connections
therefore, first connection would get full 80Mbit, second connection 40Mbit and so on

I did some search about this a year ago and couldn't find anything matching this functionality

Has anything changed that would enable the above functionality ?

Thanks,
Miro
Subject Author Posted

dynamically rate_limit ?

reddwarf September 01, 2015 08:55AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready