我在玩分发服务器/工作程序,但在重新启动应用程序时,它每次都会创建一个带有唯一id的新工作程序队列。
有线索吗??以及了解分销商/工作人员及其配置的最佳位置。
当您启动端点时,您会看到一条记录的警告,它解释了原因。
2013-08-26 18:56:48,473 [1] WARN NServiceBus.ConfigureDistributor [(null)] <(nu
ll)> - 'MasterNodeConfig.Node' points to a local host name: [localhost]. Worker
input address name is [Orders.Handler.810aa1ea-7eb4-47b3-b639-724c4498a999@SELEN
E]. It is randomly and uniquely generated to allow multiple workers working from
the same machine as the Distributor.
以下是一些关于分销商的文档,以及对横向扩展示例的解释。
http://particular.net/articles/load-balancing-with-the-distributor
http://particular.net/articles/scale-out-sample.
查看动手实验室(中级实验室),它还将引导您完成横向扩展实验室。横向扩展实验室将向您展示如何通过保持代码不变和更改配置来将员工部署到不同的机器上。http://particular.net/HandsOnLabs
希望这能有所帮助。