使用应用程序预热配置Azure网站

问题描述:

我有一个为我开发的 Azure网站希望减少初始加载时间.在常规的ASP.NET网站上,我将配置应用程序初始化IIS模块,但直接使用Azure网站无法进行IIS配置.

I have an Azure Website developed for which I would like to reduce the initial loading time. On a regular ASP.NET site I would configure the Application Initialization IIS module, but with Azure Websites direct IIS configuration is not possible.

如果有任何不同,网站将以保留模式运行.

The website is running in reserved mode if that makes any difference.

Windows Azure网站不支持应用程序初始化.因为它是本机模块,并且Windows Azure网站不允许通过web.config配置本机模块.

Application Initialization is not supported with Windows Azure Websites. because it is a native module and Windows Azure Websites does not allow configuring native modules via web.config.

Alsom的Windows Azure网站的内容实际上位于一个集中的位置,然后从那里加载并执行到Web服务器.虽然共享实例获得了一部分主机VM,而预留实例获得了完整的主机VM来运行您的Web应用程序,但在两种情况下,网站应用程序都来自同一集中位置,因此,是否有预留实例来获取应用程序初始化并不重要在职的.

Alsom the content for Windows Azure Websites are physically located at a centralized location and from there they loaded and executed to webservers. While shared instance gets a slice of host VM, versus reserved instance get a full host VM to run your web applications, in both cases the website application is coming from same centralized located so it does not matter if you have reserve instance to get Application Initialization working.

应用程序初始化对于您的应用程序是必需的,并且您的网站正在以保留模式运行,您可以使用Azure VM或Windows Azure Web角色使其正常运行.

Application Initialization is necessary for your application and your websites is running in reserve mode, you can use Azure VM or Windows Azure Web Role to have it working.