fhmq / hmq

High performance mqtt broker
Apache License 2.0
1.32k stars 273 forks source link

Cluster Mode ? #118

Open aki29 opened 3 years ago

aki29 commented 3 years ago

hmq跟router都已經搭建可以運行了 但不是很清楚cluster mode該如何驗證 是否有詳細說明

感謝

TrickIt commented 3 years ago

我试了下,应该是启动两个hmq broker,一个router,用两个客户端分别连接到hmq broker1, hmq broker2 上,一个发布,另一个可以订阅到消息,router只是起到一个类似注册中心的作用,实际还需要一个负载均衡来将连接分发到不同的hmq broker上,而不是客户端直接连到router上,供参考

wind-c commented 2 years ago

https://github.com/wind-c/comqtt support the distributed cluster.

a306050394 commented 5 months ago

我在集群模式下,发现消息死循环了,是bug吗?用的1.5.2版本