【发布时间】:2012-07-13 13:23:59
【问题描述】:
我有一个关于使用 AppFabric 缓存时网络连接限制的问题。
就基于 ASP.NET WCF 的应用程序而言,Windows AppFabricCache 'maxConnectionsToServer' 设置如何与 System.Net 'maxconnection' 设置交互?
例如。如果如下所示,maxConnectionsToServer 设置为 100,但 maxconnection 设置为 50,那么 maxconnection 是否会“覆盖”并变为 100?还是maxconnection中的值限制了maxConnectionsToServer的值?
...
<dataCacheClient requestTimeout="2000" channelOpenTimeout="0" maxConnectionsToServer="100">
<hosts>
<host name="127.0.0.1" cachePort="22233" />
</hosts>
<localCache isEnabled="true" sync="TimeoutBased" objectCount="10000" ttlValue="21600" />
</dataCacheClient>
...
<configuration>
<system.net>
<connectionManagement>
<add address="*" maxconnection="50"/>
</connectionManagement>
</system.net>
</configuration>
...
提前致谢
【问题讨论】:
标签: asp.net appfabric connection throttling