NServiceBus - 商业许可的建议工作线程数
我们最近将 NServiceBus 从社区升级到商业,并获得 2 个核心的许可。当我查看示例和在线时,我只看到 1 个工作线程的配置。
对于商业 NServiceBus,建议每个核心的工作线程数是多少?或者在给定系统内存/处理器资源量的情况下是否有多个工作线程?或者这是我需要调整的东西,直到找到“最佳位置”?
We recently upgrade our NServiceBus from Community to Commercial and it is licensed for 2 cores. When I look at the examples and online, I only ever see configurations for the 1 worker thread.
What is the recommended number of worker threads per core when it comes to commercial NServiceBus? Or is there a number of worker threads given the amount of system memory/processor resources? Or is this something I need to tweak until I find the 'sweet spot'?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于线程可能会在 IO 上被阻塞(例如与 DB/Web 服务通信),因此您不希望将它们限制为核心数量。没有粗略的计算来确定这个数字应该是多少。调整以找到“最佳位置”可能是最好的方法。
Since threads may be blocked on IO (like talking to a DB/webservice), you wouldn't want to limit them to the number of cores. There is no back-of-the-envelope calculation for figuring out what the number should be. Tweaking to find the 'sweet spot' is probably the best approach.