GatewayWorker 采用分布式部署,有2台机器,2个register服务,web01和web02,web01报register注册超时,查了文档也没发现问题所在,求助。
报错如下:
2021-12-31 13:20:32 pid:25942 Register auth timeout (172.17.1.31). See http://doc2.workerman.net/register-auth-timeout.html
2021-12-31 13:20:41 pid:25942 Register auth timeout (172.17.1.32). See http://doc2.workerman.net/register-auth-timeout.html
2021-12-31 13:20:42 pid:25942 Register auth timeout (172.17.1.32). See http://doc2.workerman.net/register-auth-timeout.html
pid 25942是websocket的 00:00:00 WorkerMan: worker process Register text://172.17.1.31:1237
web01(172.17.1.31)配置如下:
register_ip = 172.17.1.31,172.17.1.32
lan_ip = 172.17.1.31
tcp_port = 9218
websocket_port = 9219
gateway_process_count = 4
businessWorker_process_count = 12
web02(172.17.1.32)配置如下:
register_ip = 172.17.1.31,172.17.1.32
lan_ip = 172.17.1.32
tcp_port = 9218
websocket_port = 9219
gateway_process_count = 4
businessWorker_process_count = 12
服务正常可用,就是时不时的报这个错误。
Register auth timeout (172.17.1.31)
意思是172.17.1.31
这个ip连了register服务端口,但是没有发任何数据。如果业务没问题就不用管
好的,谢谢
请问下,这个双register的启动顺序应该是怎样的?目前是先启动web01的register,gateway,businessWorker,然后再启动web02的register,gateway,businessWorker。是否需要拆分启动,比如先启动web01和web02的register,然后再启动web01和web02的gateway,businessWorker?
没有固定顺序,都可以
好的