在Azure计算实例修改的machine.config [英] Modifying machine.config on Azure compute instances
问题描述
我想改变的过程模型,可惜这不是在运行时或在你的Web角色允许的web.config
文件,该设置只允许在的machine.config
文件。
<中processModel maxWorkerThreads =100maxIoThreads =100minWorkerThreads =50/>
什么是去一次改变上的所有的Azure计算实例machine.config文件的最好方法?
默认进程模型设置不是最佳我的应用程序:
在CLR线程池中每个CPU的工作线程的最小数量:1
每个CPU在CLR线程池中的工作线程的最大数量:20
/我最大数目每个CPU O线程在CLR线程池:20
块引用>解决方案在一般情况下,使启动任务这样的变化。运行的批处理文件
APPCMD
大概是这样做对IIS设置的最简单方法。I want to change the process model, unfortunately this is not allowed in runtime or in your Web Role
web.config
file, the setting is only allowed in themachine.config
file.<processModel maxWorkerThreads="100" maxIoThreads="100" minWorkerThreads="50"/>
What is the best way to go about changing the machine.config file on all Azure compute instances at once?
The default process model settings are not optimal for my application:
Minimum number of worker threads per CPU in the CLR thread pool: 1
Maximum amount of worker threads per CPU in the CLR thread pool: 20
Maximum number of I/O threads per CPU in the CLR thread pool: 20
解决方案In general, make changes like this in startup tasks. A batch file running
appcmd
is probably the easiest way to do it for IIS settings.这篇关于在Azure计算实例修改的machine.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!