美文网首页
Dubbo与Zookeeper集群配置

Dubbo与Zookeeper集群配置

作者: Tomy_Jx_Li | 来源:发表于2017-11-03 10:58 被阅读158次

    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集群配置

          本文链接:https://www.haomeiwen.com/subject/hvttmxtx.html