Tigase Server Clustering

时间:2023-03-08 22:15:05

首先,在服务器上启用集群

修改init.properties

--cluster-mode=true

自定义端口

允许自定义,但是所有的实例都要使用相同的端口,以便通讯

--cl-comp-ports=4250,3540

自定义端口详细配置

这个也不是必须配置的

cl-comp/connections/4250/type[S]=accept
cl-comp/connections/4250/socket[S]=plain
cl-comp/connections/4250/ifc[s]=*
cl-comp/connections/4250/remote-host[S]=localhost
cl-comp/connections/4250/connections/tls/required[B]=false

多节点配置

只要你给每一个节点设置了--cluster-mode=true,他们就能通过 Server to Server通路发现彼此。 他们是通过数据库来发现彼此的。 所有node要用同一个库。