I have a SignalR solution that is deployed to Azure Web Role (a cloud service, not an Azure Web Site), and so that we can maximize the number of connections to each instance, I need to make some changes to various ASP.NET parameters described in detail in this article: http://www.asp.net/signalr/overview/performance/signalr-performance#tuning
The appConcurrentRequestLimit and requestQueueLimit parameters were easily changed using the launch task, which uses APPCMD to make the appropriate changes. However, the maxConcurrentRequestsPerCPU parameter is located in the aspnet.config file, which cannot be changed using the same mechanism.
I tried updating this file directly using the launch task (now just replacing the main file), however, it seems to be replaced by the Azure runtime after the completion of the startup tasks, and so the change is lost. I can run RDP into the machine and make changes manually, so I saw that it works, however it is not sustainable for the service we expect to scale up and down on demand.
Any ideas on how to change this setting in an Azure environment would be appreciated!
source share