【发布时间】:2016-07-15 04:26:34
【问题描述】:
我正在尝试配置 NServiceBus Distributor/Worker 以用于开发目的。我安装了以下依赖项:
- NServiceBus.Core v5.2.14
- NServiceBus.Distributor.MSMQ v5.0.4
- NServiceBus.Host v6.0.0
在其中一名工作人员中引发 ConfigurationErrorsException,并显示以下消息:
'MasterNodeConfig.Node' 指向一个本地主机名:[localhost]
这个错误的意图很明确。指向 localhost 的配置违背了分布式架构的目的。尽管出于开发目的,这种类型的配置是最佳的。以下是我的工人的配置:
<TransportConfig MaxRetries="5"/>
<MasterNodeConfig Node="localhost"/>
<UnicastBusConfig
DistributorControlAddress="distributor.distributor.control@localhost"
DistributorDataAddress="distributor@localhost">
<MessageEndpointMappings></MessageEndpointMappings>
</UnicastBusConfig>
<MessageForwardingInCaseOfFaultConfig ErrorQueue="error"/>
下面的链接是一个工作示例:
Scale Out with the Distributor
将我的解决方案与上面链接中的示例进行比较,不清楚是什么导致了我的工作人员中的 ConfigurationErrorsException。有什么建议吗?
【问题讨论】:
标签: nservicebus