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=

你可能感兴趣的:(Dubbo与Zookeeper集群配置)