Runbook

High backend session usage in HAProxy

Back to Runbooks

Overview

High backend session usage in HAProxy is an incident that occurs when the amount of backend sessions in use for a host reaches a detection threshold of 80%. When this happens, HAProxy denies additional clients until resource consumption drops, which could result in service disruptions. This incident may require modifying HAProxy's configuration to allow more sessions or migrating the HAProxy server to a bigger box.

Parameters

Debug

Check the status of HAProxy

Check the current backend session usage for a specific host

Check the HAProxy configuration file

Check the current resource consumption of the HAProxy server

Check the current network connections

Multiple misbehaving clients that are not releasing backend sessions after use, causing a backlog of sessions.

Repair

Set the path to the HAProxy configuration file

Set the new value for maxconn parameter

Replace the old maxconn parameter with the new value in the configuration file

Restart the HAProxy service to apply the changes

Check if the service is running

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.