Azure 网站始终开启 [英] Azure WebSite Always On

查看:19
本文介绍了Azure 网站始终开启的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 Azure 网站上运行的 WebAPI 应用程序.它在基本模式下运行,我可以选择使其始终开启".关于这到底意味着什么,网上似乎有相互矛盾的信息.我知道效果,但如何"在这里很重要.特别是,某些东西会定期自动命中我的应用程序中的端点吗?如果是这样,我可以控制它命中的端点吗?

I have a WebAPI application running on Azure WebSites. It is running in Basic mode and I have the option to make it "Always On". There seems to be conflicting information online about what this means exactly. I know the effect, but the "how" matters a lot here. In particular, does something automatically hit an endpoint in my application periodically? If so, can I control the endpoint it hits?

正如我所提到的,它是一个 Web API 应用程序,默认路由完成了非常重要的工作,并导致大量出站流量,它还会导致项目被放置到最终将被处理的工作队列中.我希望应用程序始终开启(没有冷启动时间),但我不希望某些服务向应用程序发出请求.

As I mentioned, it is a Web API application and the default route does non-trivial work and results in a notable amount of outbound traffic and it will also result in items being placed onto a work queue that will eventually be processed. I want the application always on (no cold start times) but I don't want some service making requests of application.

推荐答案

一旦您的 Azure 网站被标记为 AlwaysOn,您的站点根目录将在几秒钟内被点击.我们还确保您的站点已启动并在所有工作人员上运行(如果您已配置自动缩放选项等).之后,如果工作进程崩溃,alwaysOn 会确保它恢复正常.您无法控制它命中的端点.

As soon as your Azure Website is marked as AlwaysOn, your site root will be hit within a few seconds. We also make sure your site is up and running on all the workers (if you have configured auto scale option or such). After that, if the worker process crashes, alwaysOn makes sure that it comes back up. You cannot control the endpoint that it hits.

这篇关于Azure 网站始终开启的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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