我试图通过使用hazelcast插件(都使用3.9.3版本的openfire)设置2个节点的Openfire群集。
其中一个在192.168.1.2上运行,另外一个在192.168.1.22上运行,两者都使用在192.168.1.2上运行的普通Mysql DB。
我使用apt-get install haproxy在ip 192.168.1.13上安装了Haproxy,并将其configuration为负载均衡。
当我尝试使用haproxy在192.168.1.13:9090的openfirepipe理控制台login时,我被卡住了,它不允许我login。 我无法识别发生了什么事情,因为我是一个初学者群集,所以请告诉我,如果我做错了什么。 下面是我的haproxy.cnf文件
global log /dev/log local0 log 127.0.0.1 local1 notice maxconn 4096 user haproxy group haproxy daemon defaults log global mode http option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 listen openfire bind 192.168.1.13:9090 mode http stats enable stats uri /haproxy balance roundrobin option httpclose option forwardfor server openfire_rahul 192.168.1.22:9090 check server openfire_girish 192.168.1.2:9090 check
“提前致谢”
现在我明白到底发生了什么。 因为我已经使用模式http,所以http是一个无状态的协议,服务器closures每个响应专用请求后的连接。
通过使用TCP模式,我摆脱了这个问题。