Apache HTTP Server

Apache Traffic Spike Overwhelming Worker Capacity

critical
scalingUpdated Feb 21, 2025

Sudden traffic increases cause apache_workers to reach capacity limits, resulting in connection queuing, increased apache_request_time, and potential service unavailability.

How to detect:

Monitor apache_workers approaching configured MaxRequestWorkers or MaxClients limits. Correlate with apache_net_request_per_s surges and apache_request_time increases. Watch apache_scoreboard for high counts of workers in 'W' (sending reply) or 'K' (keepalive) states.

Recommended action:

Implement proactive rate limiting based on worker capacity thresholds. Scale horizontally by adding Apache instances behind load balancer. Tune MaxRequestWorkers, KeepAliveTimeout, and MaxConnectionsPerChild for traffic patterns. Consider implementing connection queueing with circuit breakers for graceful degradation.