简体   繁体   English

Azure云服务中的WCF ServiceBehavoir.InstanceContextMode

[英]WCF ServiceBehavoir.InstanceContextMode in Azure Cloud Service

Does anyone know how the WCF ServiceBehavoir.InstanceContexMode is affected when hosting the WCF service in Azure? 有谁知道在Azure中托管WCF服务时如何影响WCF ServiceBehavoir.InstanceContexMode

A service that is configured for PerCall instancing, and handles multiple concurrent requests on-prem, does not seem to process more than 2 concurrent requests when hosted in Azure. PerCall实例配置并在本地处理多个并发请求的服务在Azure中托管时似乎处理的并发请求不超过2个。 Are there other settings that will throttle the requests? 还有其他设置可以限制请求吗?

UPDATE: It appears that the limitation was due to client-side testing issues - restrictions on concurrent outbound http connections from the same machine, and not server side settings. 更新:该限制似乎是由于客户端测试问题引起的-对同一台计算机上并发出站http连接的限制,而不是服务器端设置。

Being new to Azure, I had mistakenly thought that Azure's instancing and scaling options might be overriding what I had configured in WCF ServiceBehavoir, but this was a red herring. 作为Azure的新手,我曾经错误地认为Azure的实例化和扩展选项可能会覆盖我在WCF ServiceBehavoir中配置的内容,但这是一个麻烦。

The client-side restrictions were increased by altering the following registry entry on the client PC used for testing... 通过更改用于测试的客户端PC上的以下注册表项,增加了客户端限制。

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

Once I had done this, I was able to test multiple concurrent connections to my Cloud Service from the same client PC, and with only a single 'instance' running in Azure. 完成此操作后,我就可以测试从同一台客户端PC到我的Cloud Service的多个并发连接,并且仅在Azure中运行一个“实例”。

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

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