dubbo+zookeeper集群配置
集群服务注册到多台zookeeper配置:
1 <dubbo:registry protocol="zookeeper" address="10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181" />
分成多组注册中心
1 <dubbo:registry id="chinaRegistry" protocol="zookeeper" address="10.20.153.10:2181" group="china" />
2
3 <dubbo:registry id="intlRegistry" protocol="zookeeper" address="10.20.153.10:2181" group="intl" />
dubbo-admin 配置连接集群
1 #注意一个地址加多个backup,任何一个节点如果存活着,那么总体服务不回出现问题
2 dubbo.registry.address=zookeeper://127.0.0.1:2181?backup=127.0.0.1:2182,127.0.0.1:2183
3 dubbo.admin.root.password=root
4 dubbo.admin.guest.password=guest
5 注意:此处不能采用 10.20.153.10:2181,10.20.153.11:2181,10.20.153.12:2181这种逗号分割的方式
posted on 2017-09-14 14:15 anqli_java 阅读(1148) 评论(0) 编辑 收藏 举报