我正在尝试创建一个经纪人网络,这样就会有两个“域”,一个核心和一个分布。之间的区别在于,分发中发布的主题不会被允许流入核心。
broker_core_primary broker_core_secondary broker_dist_primary broker_dist_secondary
消息流如下: broker_core_primary< ---> broker_core_secondary broker_dist_primary< ---> broker_dist_secondary core(broker_core_primary,broker_core_secondary)----> DIST(broker_dist_primary,broker_dist_secondary)
我已经使用了以下配置,但它没有从任何一个经纪人的损失中恢复,并且重新引入该经纪人会使事情变得更糟。
非常感谢任何帮助。我也愿意改变拓扑结构,只要我能够保留单独的出版域的概念,以便可以阻止在dist中发布的主题在核心经纪人身上消费。
broker_core_primary
broker_core_secondary broker_core_primary“duplex =”true“networkTTL =”5“uri =”static:(tcp:// broker_core_primary:61616)?maxReconnectDelay = 5000,useExponentialBackOff = false,randomize = false,trace = true“userName =”brokerBridge“password = “删除”/>
broker_dist_primary broker_core“duplex =”false“networkTTL =”5“uri =”static:(tcp:// broker_core_primary:61616,tcp:// broker_core_secondary:61616)?maxReconnectDelay = 5000,useExponentialBackOff = false,randomize = false,trace = true “userName =”brokerBridge“password =”REMOVED“/>
broker_dist_secondary
broker_core“duplex =”false“networkTTL =”5“uri =”static:(tcp:// broker_core_primary:61616,tcp:// broker_core_secondary:61616)?maxReconnectDelay = 5000,useExponentialBackOff = false,randomize = false,trace = true “userName =”brokerBridge“password =”REMOVED“/>
broker_dist_primary“networkTTL =”5“duplex =”true“uri =”static:(tcp:// broker_dist_primary:62626)?maxReconnectDelay = 5000,useExponentialBackOff = false,randomize = false,trace = true“
userName =“brokerBridge”password =“REMOVED”>
答案 0 :(得分:0)
请定义“not gracefully recover” 只是一些可能的错误:
阻止目标从发布到连接的网络节点的另一种方法是在配置中排除它们。排除(或包含)的目的地将在网络连接器上配置(参见文档)
ps:请更好地格式化您的问题并使用配置中的真实xml,这很难阅读。