[mod_deflate] skip deflate if loadavg too high (fixes #1505)
commit1f3ad401ba4d7f75f554eaf4defd8ad19582f96c
authorGlenn Strauss <gstrauss@gluelogic.com>
Wed, 19 Oct 2016 20:09:29 +0000 (19 16:09 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Wed, 19 Oct 2016 20:38:47 +0000 (19 16:38 -0400)
treee98af6367b7a203ff07390dba136f0a160cd356f
parent72a5ff1f21fe10e8a8b53dcf18cdb65986d89539
[mod_deflate] skip deflate if loadavg too high (fixes #1505)

[mod_deflate] skip deflate if 1 min loadavg too high
deflate.max-loadavg  = "3.50"  # express value as string of float num

[mod_compress] skip compression if 1 min loadavg too high
compress.max-loadavg = "3.50"  # express value as string of float num

Feature available on BSD-like systems which have getloadavg() in libc

Note: load average calculations are different on different operating
systems and different types of system loads, so there is no value that
can be recommended for one-size-fits-all.

x-ref:
  "Enable mod_compress to abandon compression when load average is too high"
  https://redmine.lighttpd.net/issues/1505
SConstruct
configure.ac
src/CMakeLists.txt
src/base.h
src/mod_compress.c
src/mod_deflate.c
src/server.c