https://httpd.apache.org/docs/trunk/mod/mod_ratelimit.html
> Provides a filter named RATE_LIMIT to limit client bandwidth.
> The connection speed to be simulated is specified, in KiB/s

compared with external "mod_bw.so" IMHO this is a design mistake

* saying i have several virtual hosts
* my line has a capacity of 512 KB/Sec
* one of the virtual hosts starts to have high traffic and abuses my upstream
* "SetEnv rate-limit 256" limits each client to 256 KB/sec at it's own
* two of them abuse my upstream completly
______________________

http://bwmod.sourceforge.net
http://mariusvw.com/tag/mod_bw/

would limit the one vhost to 256 KB/sec. meaning in the
case of 3 connections each would get 85 KB/sec. and the
half of my available bandwidth is for other vhosts

there is another interesting implementation detail of mod_bw
"LargeFileLimit * 500 786432" would only limit the bandwidth
of files larger than 500 KB what is perfect in many cases to
prevent line-overload by large downloads while respond with
full performance to normal website-requests to serve small
requests as quick as possible and prevnbt run out of workers

<IfModule mod_bw.c>
 BandWidthModule On
 ForceBandWidthModule On
 LargeFileLimit * 500 786432
</IfModule>



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to