Project

General

Profile

Actions

Feature #1505

closed

Enable mod_compress to abandon compression when load average is too high

Added by Anonymous over 16 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_compress
Target version:
ASK QUESTIONS IN Forums:

Description

mod_compress can really make things faster but its performance is very compromised if the CPU is too busy with other tasks. So, this mod should be able to be auto-suspended if loadavg (/proc/loadavg) gets too high, reaching a value set in lighttpd.conf with a grace period.

Doing so, in any scenario, mod_compress will only boost performance, not making it worse.

-- ubuntu


Files

mod_compress_load_avg.patch (3.56 KB) mod_compress_load_avg.patch origo, 2009-06-11 09:29
Actions #1

Updated by origo almost 15 years ago

Simple/proposed patch for adding config option "compress.max-load-avg", and checking "/proc/loadavg" every 10 seconds.

Known 'flaw': mod_compress will NOT deliver cached already compressed files if load is considered too high, but will deliver the uncompressed file (as if mod_compress was disabled).

Actions #2

Updated by gstrauss almost 8 years ago

  • Assignee deleted (jan)
Actions #3

Updated by gstrauss almost 8 years ago

  • Target version deleted (1.5.0)
Actions #4

Updated by gstrauss over 7 years ago

  • Subject changed from Enable mod_compress to abadon compression when load average is too high to Enable mod_compress to abandon compression when load average is too high
  • Description updated (diff)
  • Status changed from New to Patch Pending
  • Target version set to 1.4.43
Actions #5

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
Actions

Also available in: Atom