Welcome! Log In Create A New Profile

Advanced

Re: Per IP bandwidth limit

Kostya Velychkovsky
November 11, 2019 01:52PM
I have big data storage, some clients upload files to it, some download,
some clients might upload a lot of small files in 100-200 parallel
connections, but using only 20-30 mbit/s bandwidth, some clients can put
big files in 10 parallel connections but using - 3Gbit/s bandwidth. The
same situation with download. So, the first situation is normal behavior
and I can't afford to limit connection number per IP, in the second case
it's bandwidth overload, but I can't limit bandwidth per IP, because <a
href="http://nginx.org/ru/docs/http/ngx_http_core_module.html#limit_rate">
limit_rate</a> directive is working per request only. In general case, I
just need to limit bandwidth from 1 IP, independently how many parallel TCP
connections per IP used by client 10 or 100.

пн, 11 нояб. 2019 г. в 20:06, Peter Booth <peter_booth@me.com>:

> Why do you want to do this at all?
> What is the real underlying problem that you are attempting to solve?
>
>
>
> On Nov 11, 2019, at 8:29 AM, Kostya Velychkovsky <velychkovsky@gmail.com>
> wrote:
>
> I use Linux, and had a bad experience with Linux shaper (native kernel QoS
> mechanism - tc ), it consumed a lot of CPU and worked unstable. So I
> rejected the idea to keep using it.
>
> пн, 11 нояб. 2019 г. в 15:23, Christos Chatzaras <chris@cretaforce.gr>:
>
>>
>> > On 11 Nov 2019, at 15:09, Kostya Velychkovsky <velychkovsky@gmail.com>
>> wrote:
>> >
>> > Hello, is it the correct way to limit download/upload speed per client
>> IP, at the same time ignore how many connections it opens and request rate
>> produced?
>> >
>> > I need just limit bandwidth for example 100 mbit/s per IP, and no
>> matter it opens 1 connection or 100 simulation connections.
>> >
>>
>> Maybe it's better to do this with firewall. For example in FreeBSD this
>> can be done with IPFW + Dummynet.
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> --
> *Best Regards *
>
> *Kostiantyn Velychkovsky *
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



--
*Best Regards *

*Kostiantyn Velychkovsky *
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Per IP bandwidth limit

Kostya Velychkovsky November 11, 2019 08:12AM

Re: Per IP bandwidth limit

CyberCr33p November 11, 2019 08:24AM

Re: Per IP bandwidth limit

Kostya Velychkovsky November 11, 2019 08:30AM

Re: Per IP bandwidth limit

pbooth November 11, 2019 01:08PM

Re: Per IP bandwidth limit

Kostya Velychkovsky November 11, 2019 01:52PM

Re: Per IP bandwidth limit

gariac November 11, 2019 02:58PM

Re: Per IP bandwidth limit

J.R. November 11, 2019 07:02PM

Re: Per IP bandwidth limit

Kostya Velychkovsky November 12, 2019 03:52AM

Re: Per IP bandwidth limit

Zafer Gürel November 12, 2019 07:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready