3.5.2. 记录 worker 节点详情
当您配置使用 mod_cluster
的负载均衡代理服务器时,您可以选择将 Apache HTTP 服务器配置为记录处理请求的每个 worker 节点的详细信息。如果需要对负载均衡器进行故障排除,请记录 worker 节点详情。
先决条件
流程
打开
mod_cluster
配置文件。注意mod_cluster
配置文件通常位于JBCS_HOME/httpd/conf.d/mod_cluster.conf
目录中。在您的 Apache HTTP Server
LogFormat
指令中添加以下详情:%{BALANCER_NAME}e :: The name of the balancer that served the request. %{BALANCER_WORKER_NAME}e :: The name of the worker node that served the request.
%{BALANCER_NAME}e :: The name of the balancer that served the request. %{BALANCER_WORKER_NAME}e :: The name of the worker node that served the request.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow