简体   繁体   English

Azure应用程序服务-如何使Always On在特定应用程序上正常工作?

[英]Azure app service - how to make Always On work for specific application?

We have an Azure app service, in which several web apps are deployed: 我们有一个Azure应用服务,其中部署了多个Web应用:

/ - root
/app1 - first application
/app2 - second application
...

At root we have simple web site, and apps are ASP.NET Web API services. 从根本上讲,我们有一个简单的网站,而应用程序是ASP.NET Web API服务。 app1 is running some background tasks so we need it to be always active. app1正在运行一些后台任务,因此我们需要使其始终处于活动状态。 To achieve this, we set Always On option in app service settings. 为此,我们在应用程序服务设置中设置了Always On选项。 We expect, that both root web site and all applications will be always loaded, but behaviour is different: it seems that applications are not staying alive . 我们期望,根网站和所有应用程序都将始终被加载,但是行为有所不同: 应用程序似乎并没有存活

Our background jobs (powered by Hangfire) are not triggering at schedule, but if any user hit the app with any request, app awakens and starts to process jobs. 我们的后台作业(由Hangfire提供支持)并未按计划触发,但是如果有任何用户按任何请求点击应用程序,则应用程序会唤醒并开始处理作业。

So the question is: can we somehow tell Always On feature to ping not root of site but specific app url? 因此,问题是:我们能否以某种方式告诉Always On功能来ping站点的根目录而不是站点根目录?

Thanks. 谢谢。

I didn't used it yet but you probably looking for this feature: Application Initialization to warm up specific pages when app pool starts . 我尚未使用它,但您可能正在寻找此功能: 启动应用程序池时,应用程序初始化可预热特定页面

This should allow you to specify multiple pages. 这应该允许您指定多个页面。

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

相关问题 Azure App Service中的ASP.NET应用程序设置如何工作? - How do ASP.NET application settings in an Azure App Service work? 如何使用 AzCopy 使用 cmd 在 Azure Web 应用服务中工作 - How to use AzCopy to work in Azure web app service using cmd IIS Azure App Service上的SPA应用程序 - SPA application on IIS Azure App Service Azure App服务中.Net框架升级前后如何照顾应用 - How to take care of the application before or after .Net framework upgrade in Azure App service 如何找出为什么Application_End在Azure App Service上触发 - How to find out why Application_End is firing on Azure App Service 如何使Web App引用存储在Azure中的WCF服务? - How do I make Web App reference WCF service stored in Azure? 如何从托管在 Azure 应用服务中的 .Net Framework Asp.Net 应用程序访问 Azure KeyValut? - How do I access an Azure KeyValut from an .Net Framework Asp.Net application hosted in an Azure App Service? Azure 应用服务 - 写入文件系统 - ASP.NET Web 应用程序 - Azure App Service - write to filesystem - ASP.NET web application 具有用户分配的托管标识的 Azure 应用服务使应用程序崩溃 - Azure App Service with User-Assigned Managed Identity crashes application 如何将文件夹发布到Azure应用服务? - How to publish a folder to Azure App Service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM