Trying to get to grips with mod_qos, I used the Sample Configuration from "http://opensource.adnovum.ch/mod_qos/". I'd like achieve, that requests from a certain location are only sent with a certain amount of KB per seconds.
In my Apache configuration, I've got the following:
QS_LocKBytesPerSecLimit /qos 1
QS_LocRequestLimit /qos 1
Allow from all
Deny from .foo.com
What I'd like achieve with this is, that files downloaded from "/qos" are only sent with 1 kb/sec; ie. VERY slow. BUT:
--2012-05-23 14:43:48-- http://pp.skwar.me/qos/400K
Auflösen des Hostnamen »pp.skwar.me (pp.skwar.me)«... 126.96.36.199
Verbindungsaufbau zu pp.skwar.me (pp.skwar.me)|188.8.131.52|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort...
HTTP/1.1 200 OK
Date: Wed, 23 May 2012 12:43:52 GMT
Server: Apache/2.2.16 (Debian) DAV/2 PHP/5.3.3-7+squeeze9 with Suhosin-Patch mod_ssl/2.2.16 OpenSSL/0.9.8o mod_qos/10.5
Last-Modified: Wed, 23 May 2012 11:48:36 GMT
Keep-Alive: timeout=15, max=100
Länge: 437384 (427K) [text/plain]
In »»400K.51«« speichern.
100%[======================================>] 437'384 --.-K/s in 0.08s
2012-05-23 14:43:48 (5.22 MB/s) - »»400K.51«« gespeichert [437384/437384]
As you can see there, the file was downloaded with 5 MB/s. In the Apache logs, there's this then:
==> access.log <==
fbx1-gw.everyware.ch - - [23/May/2012:14:43:52 +0200] "GET /qos/400K HTTP/1.1" 200 437773 "-" "Wget/1.13.4 (linux-gnu)"
==> error.log <==
[Wed May 23 14:45:01 2012] [warn] [client 184.108.40.206] mod_qos(052): byte rate limit, rule: /qos(1), kbytes/sec=15, delay=3700ms
I notice, that if I "hammer" my server (below), every single request is very fast, but there's some sort of delay in between.
Is this the way it's supposed to be?
while :; do wget -S http://pp.skwar.me/qos/400K; done
Maybe the following topic gives you some answer?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.