[英]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.