简体   繁体   English

我怎么知道Apache负载均衡器正常工作?

[英]How do i know Apache Load Balancer is working properly?

Hello i mean how do i guarantee Load balance is balancing it right is there any tool to prove it ?I need to prove it is balancing right but i have heard there is an tool to do that got any suggestion? 您好,我的意思是我如何保证负载均衡是否正确,是否有任何工具可以证明它?我需要证明负载均衡是否正确,但是我听说有一种工具可以做到这一点? I HAVE TRIED APACHE BENCHMARK tool but didn't show what i wanted 我尝试过APACHE BENCHMARK工具,但没有显示我想要的

In Mod_jk the is a worker of type status you can add to your config: 在Mod_jk中,是类型为状态的工作程序,您可以将其添加到配置中:

In your workers.properties: 在您的worker.properties中:

worker.list=balancer,lbstats

worker.node1.type=ajp13
...
worker.node2.type=ajp13
...

worker.balancer.balance_workers=node1,node2
worker.lbstats.type=status

In your httpd.conf: 在您的httpd.conf中:

JkMount /modjkstatus  lbstats

When the server is running, you can access a status page, displaying some cluster and balancer informaion, at your_server:8080/modjkstatus 服务器运行时,您可以在your_server:8080 / modjkstatus上访问状态页面,显示一些集群和平衡器信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM