Dubbo与Zookeeper集群配置

dubbo.properties配置:

dubbo.application.name=sdp_order_srv

#zk集群的时候dubbo只能这样配置

dubbo.service.register.address=zookeeper://10.10.100.152:3181?backup=10.10.100.152:4181,10.10.100.152:5181

#zk单点的话下面两种配置都可以

#dubbo.service.register.address=zookeeper://${zookeeper.address}

#dubbo.service.register.address=zookeeper://10.1.203.171:2181

dubbo.service.protocol.name=dubbo

dubbo.service.protocol.port=20885

zk配置

#\u7cfb\u7edf\u53c2\u6570\u914d\u7f6e

zookeeper.sessionTimeout=60000

zookeeper.connectionTimeout=5000

#zk集群配置

zookeeper.address=10.10.100.152:3181,10.10.100.152:4181,10.10.100.152:5181

zookeeper.connect.status=true

zookeeper.connect.countersign=false

zookeeper.connect.username=

zookeeper.connect.password=

    原文作者:Tomy_Jx_Li
    原文地址: https://www.jianshu.com/p/63a333cd7448
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞