You are looking at documentation for an older release. Not what you want? See the current release documentation.
Diagnose a cluster problem can be difficult. The Apache logs can be customized to help you to follow the load balancing behavior.
The BALANCER_WORKER_ROUTE
will add in your logs the name of the node that received the requests.
The BALANCER_ROUTE_CHANGED
will set the field to 1
if the user was redirected to different node compared his previous request.
This indicate the node was removed from the cluster pool or was not able to received more requests. During normal processing, this flag should always have the value -
.
Example of log format with cluster diagnosis enabled :
LogFormat "%h %l %u %t \"%r\" %>s %b %{BALANCER_WORKER_ROUTE}e %{BALANCER_ROUTE_CHANGED}e" common_cluster
More log options are detailed in the Apache documentation