工作进程是否在AppPool中共享其输出缓存? [英] Does a worker process share its output cache within an AppPool?

查看:109
本文介绍了工作进程是否在AppPool中共享其输出缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

摘要:

我在IIS中使用名为"WebsiteAppPool"的AppPool在IIS中拥有一个名为"Website"的ASP.NET MVC网站. WebsiteAppPool配置为最多允许4个工作进程,实际上创建了一个"Web Garden".还可以通过web.config将网站配置为使用CacheProfiles启用OutputCaching.

I have an ASP.NET MVC website in IIS named 'Website' using an AppPool named 'WebsiteAppPool'. WebsiteAppPool is configured to allow up to 4 Worker Processes, in effect creating a 'Web Garden'. The Website is also configured, via web.config, to enable OutputCaching using CacheProfiles.

<caching>
  <outputCacheSettings>
    <outputCacheProfiles>
      <clear />
      <add name="ControllerNameActionName" duration="43200" varyByParam="*" />
    </outputCacheProfiles>
  </outputCacheSettings>
</caching>

我的问题是-

AppPool的工作进程将共享输出缓存,还是每个工作进程都具有输出缓存,因此将在整个AppPool中创建4个缓存副本.

Will the AppPool's worker process' share the output cache or will each worker process have the Output Cache, therefore creating 4 cached copies across the AppPool.

注意:

我主要担心的是,这将揭露缓存输出的好处,而让一个WorkerProcess提供缓存输出而不是4更好.

My main concern is that this will debunk the benefits of having cached output and I would be better off having one WorkerProcess serving up the cached output rather than the 4.

推荐答案

来自 MSDN :

因为Web花园允许使用多个进程,所以每个进程将具有其自己的应用程序状态,进程内会话状态,缓存和静态数据的副本. Web Garden不应用于所有应用程序,尤其是在需要维护状态的情况下.在确定Web花园模式是否合适之前,请务必先对应用程序的性能进行基准测试.

Because Web gardens enable the use of multiple processes, each process will have its own copy of application state, in-process session state, caches, and static data. Web gardens should not be used for all applications, especially if they need to maintain state. Be sure to benchmark the performance of the application before deciding whether Web garden mode is appropriate.

使用网络花园时,重要的是要了解会话状态和轮询机制的工作方式.考虑其他应用程序池设置如何影响应用程序也很重要

When using a Web garden, it is important to understand how session state and round robin works. It is also important to consider of how other application pool settings affect the application

如果您正在执行进程内会话状态(希望无论如何都无法实现),则网络花园特别容易出错.从我的经验中,我发现网络花园是人们认为自己实在的好处.

Web gardens are especially screwy if you're doing in-process session state (which you hopefully aren't anyway). In my experience, I find that web gardens are rarely the benefit that people think they are.

这篇关于工作进程是否在AppPool中共享其输出缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆