2016-11-13 102 views
0

我配置了使用Apache負載均衡2 dgraph的endeca集羣..這兩個dgraph都在不同的機器上運行...用於負載均衡的Apache端口5555 ...我有兩個應用程序服務器.. 。我只從一個dgraph得到了應答,不能從另一個dgraph得到響應,並且它沒有記錄....在哪臺機器5555端口必須運行?它應該同時運行dgraph機器或Web服務器機器?你們可以爲我從兩個DGraph組件獲得響應....我需要快速完成它....提前使用Apache負載均衡的Endeca集羣設置

感謝,


謝謝...

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

才能添加你的Apache配置的帖子? – radimpe

+0

@radimpe謝謝你添加了apache配置 –

回答

0

自己想出來。

Apache的5555端口需要在ITLHost運行(DgraphB1)

兩個應用程序服務器需要點ITL主機(DgraphB1)和端口5555

一切工作正常..