我使用2 dgraph的Apache负载平衡配置了endeca集群。两个dgraph都在不同的机器上运行...用于负载平衡的Apache端口5555 ...我有两个应用服务器......我正在得到响应从只有一个dgraph无法得到另一个dgraph的响应,它没有记录....在哪台机器5555端口必须运行???它应该运行dgraph机器或web服务器机器????你能不能让我得到dgraph的响应......我需要快点完成它......
提前致谢,
谢谢......DgraphA1 - running in machine A
DgraphB1 - running in machine B (ITL Host)
App server1 pointing to DgraphA1 and Appserver2 pointing to DgraphB1.
Below things are configured in apache for endeca load balancing.I configured the listen port 5555 in Machine A apache..
For App servers, apache are configured in Machine A httpd.conf file.
NameVirtualHost *:5555
<VirtualHost *:5555>
ServerName MachineA
ProxyPass / balancer://dgraphs/
ProxyPassReverse / balancer://dgraphs/
<Proxy balancer://dgraphs>
BalancerMember http://MachineA:15000 loadfactor=1 retry=0
BalancerMember http://MachineB:15000 loadfactor=1 retry=0
</Proxy>
</VirtualHost>
<Location /balancer-manager>
SetHandler balancer-manager
</Location>
答案 0 :(得分:0)
自己想出来。
Apache 5555端口需要在ITLHost(DgraphB1)中运行
两个App服务器都需要指向ITL主机(DgraphB1)和端口5555。
一切正常......