HAProxy Enterprise Documentation 1.5r2

set rate-limit http-compression global

Set the process-wide compression rate limit.

Description

If compression is enabled with the filter compression directive, HAProxy Enterprise compresses responses before relaying them to the client. You can set the global directive maxcomprate to limit the number of kilobytes per second that get compressed, reducing CPU usage.

global
   maxcomprate 250

By default, it's set to 0, which means unlimited.

Use set rate-limit http-compression global to change this setting dynamically.

Examples

Below, we set the maxcomprate directive to 500 dynamically:

$ echo "set rate-limit http-compression global 500" |
sudo socat stdio /var/run/hapee-1.5/hapee-lb.sock

See also


Next up

set rate-limit sessions global