集群服务注册到多台zookeeper配置:
<dubbo:registry protocol="zookeeper" address="10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181" /> |
分成多组注册中心:
<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" /> |
dubbo admin 配置连接集群
#注意一个地址加多个backup,任何一个节点如果存活着,那么总体服务不回出现问题
dubbo.registry.address=zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
dubbo.admin.root.password=root
dubbo.admin.guest.password=guest
注意:此处不能采用 10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181这种逗号分割的方式