HAProxy Enterprise Documentation 2.6r1

Traffic shaping overview

Traffic shaping allows you to control the bandwidth of data flow into and out of your load balancers. These measures are important in avoiding networking congestion issues such as excessive latency.

Traffic shaping involves delaying HTTP requests and responses when bandwidth consumption exceeds specified limits. By contrast, the process of dropping traffic under extreme conditions is called traffic policing. For details, see Traffic Policing.

Traffic shaping is configured separately for uploads and downloads.

  • For uploads, the filter bwlim-in directive defines the filter, and the http-request set-bandwidth-limit directive enables it.

  • For downloads, the filter bwlim-out directive defines the filter, and the http-response set-bandwidth-limit directive enables it.

Next up

Set a bandwidth limit for downloads