Skip to content

trawick/tweak-qos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tweak-qos

mod_qos 10.30 from Sourceforge plus some proposed fixes

contents

Only the apache2 subdirectory of mod_qos has been imported. This is the module itself.

licensing

The "real" mod_qos is GPLv2. The licensing of any changes here is the same.

references

what is fixed?

See the last reference above for the behavior I saw with the original implementation. Besides resolving the basic behavior, it solves these additional problems:

  • doesn't cheat the client with content compressed by mod_deflate
    • The original bandwidth filter ran before mod_deflate, so limiting output per time was done on uncompressed data, meaning that the client didn't get nearly enough data as they deserved.
  • doesn't require that the request go through mod_proxy or some other mechanism to split the data in manageable chunks
    • The new bandwidth filter handles that automatically.

using the new implementation

Previously, you might configure bandwidth limiting like this (presumably with a more interesting criterium for the event):

SetEnvIf Request_URI "."  TESTING
QS_EventKBytesPerSecLimit TESTING 100
QS_EventPerSecLimit       TESTING 999999
QS_EventRequestLimit      TESTING 999999

(You need to configure more than just QS_EventKBytesPerSecLimit, even if you don't care about the other features.)

Now it is simply

SetEnvIf Request_URI "."  TESTING
QS_EventNewKBytesPerSecLimit TESTING 100

Checking that an environment variable is not set also works:

QS_EventNewKBytesPerSecLimit !TESTING 100

(In other words, limit download bandwidth to 100K bytes per second if the TESTING variable is not defined.)

VIP selection is also supported. (VIPs won't be limited to the configured bandwidth.)

miscellaneous notes

  • If the response is relatively small compared with the limit (e.g., 50 byte response, 5K/second limit), the configured bandwidth will be underutilized (by perhaps 5%).

About

mod_qos from Sourceforge plus some proposed fixes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages