简体   繁体   English

越来越多的传出连接

[英]Increasing number of outgoing connections

We have a cluster of window services that acts as a "hub". 我们有一组窗口服务,充当“中心”。 These services will consume a number of 3rd party web services. 这些服务将消耗许多第三方Web服务。 Currently we have maxConnection set to 20. However, there are times when the services are handling more then 20 concurrent requests each and any calls to external web services will be dropped. 目前我们将maxConnection设置为20.但是,有时服务每个处理超过20个并发请求,并且将丢弃对外部Web服务的任何调用。

Is there anything we need to look out for if we increase this number? 如果我们增加这个数字,有什么我们需要注意的吗? What would be the maximum number that we can set safely? 我们可以安全设置的最大数量是多少?

<system.net>
    <connectionManagement>
        <add address="*" maxconnection="20" />
    </connectionManagement>
</system.net>

Edit: Due to the nature of the system, we cannot use queues to management the requests. 编辑:由于系统的性质,我们不能使用队列来管理请求。

Microsoft recommends 12 * n where n is the number of processors, however you should consider configuring more parameters. Microsoft建议使用12 * n,其中n是处理器的数量,但是您应该考虑配置更多参数。 This KB article is a good starting point: 这篇知识库文章是一个很好的起点:

http://support.microsoft.com/kb/821268 http://support.microsoft.com/kb/821268

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM