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

查看:152
本文介绍了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的,你的网站将根在几秒钟内被击中。我们还确保您的网站和所有的工人正在运行(如果配置了自动缩放比例选项,或此类)。在此之后,如果工人进程崩溃,始终开启可以确保它回来了。
你无法控制它击中了终点。

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天全站免登陆