发新帖

zookeeper集群配置

zhujun 5月前 44
Zookeeper单机配置:
<dubbo:registry  address="zookeeper://10.20.153.10:2181"  />
<dubbo:registry  protocol="zookeeper"  address="10.20.153.10:2181"  />

Zookeeper集群配置:
<dubbo:registry  address="zookeeper://10.20.153.10:2181?backup=10.20.153.11:2181,10.20.153.12:2181"  />
<dubbo:registry  protocol="zookeeper"  address="10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181"  />

同一Zookeeper,分成多组注册中心:
<dubbo:registry  id="chinaRegistry"  protocol="zookeeper"  address="10.20.153.10:2181"group="china"/>
<dubbo:registry  id="intlRegistry"    protocol="zookeeper"  address="10.20.153.10:2181"  group="intl"  />
最新回复 (0)
返回
发新帖
zhujun
主题数
24
帖子数
2
注册排名
1