为什么我的Azure网站不断下降? [英] Why do my Azure sites keep going down?

查看:221
本文介绍了为什么我的Azure网站不断下降?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试微软的Azure云平台和我主持两个非常低需求的网站。一个是一个简单的单形式的MVC网站只接受来自用户的某些输入,执行一些计算,并吐出的输出。第二个是相似的,但它执行对一个Azure的SQL Server实例的简单查询。

I am testing Microsoft's Azure cloud platform and am hosting two very low-requirement websites. One is a simple single form MVC website that simply accepts some input from the user, performs some calculations, and spits out an output. The second is similar, but it performs a simple query against an Azure SQL Server instance.

两个网站不断地往下走。这似乎是发生的事情是,如果我不打了一段时间的网站(也许一个小时左右)的GET请求只是失败。没有什么是从服务器返回。如果我等待一两分钟,然后再试一次,网站完美的作品。

Both websites go down constantly. What appears to be happening is that if I don't hit the website for awhile (maybe an hour or so) the GET request simply fails. Nothing is ever returned from the server. If I wait a minute or two and try again, the website works perfectly.

任何人都知道发生了什么或如何解决?我显然不能在该平台上托管的网站,如果可靠性这种低...

Anyone know what's happening or how I can fix it? I obviously cannot host websites on this platform if the reliability is this low...

推荐答案

Windows Azure的网站使用的冷(无效)和温暖(活动)的网站的概念,只要网站有活动的连接将是温暖或活动,这意味着经过一番默认时间,当网站没有任何活动连接它会在寒冷的或无效的网站模​​式。一旦一个新的连接建立到同一站点的站点将不活动的(冷)醒来活跃(暖)模式和依赖于需要在网站上呈现什么样的内容,可能需要几秒钟就可以完成启动过程。冷暖网站的概念描述的 这里

Windows Azure Websites used a concept of cold (inactive) and warm (active) sites that means as long as a website has active connection it will be warm or active and after some default time, when the website does not have any active connection it will go in cold or inactive site mode. Once a new connection is established to the same site the site will wake up from inactive (cold) to active (warm) mode and depend on what kind of content needs to be rendered on the website, it may take a few seconds to complete the startup process. The concept of warm and cold sites is described here.

从技术上讲,如果它立即返回感冒网站的第一个GET请求将失败然而,这一呼吁也使网站的活跃,下一个请求会导致成功。

Technically the first GET request will fail if it returns immediately for a cold website however this call does make the site active and next requests will result success.

有是SO讨论,其中,索引页具有连接到数据库获取数据和由于连接时间到DB较长导致整体开始时间比预期长。所以,可能有几个原因,由冷过渡到暖可能会更长,您可以联系的Windows Azure网站团队 以检查为什么会出现这种情况。

There was a SO discussion in which the index page had to connect to DB to get the data and because the connection time to DB was longer which resulted the overall start time longer then expected. So there could be several reason by transition from cold to warm may be longer and you can contact Windows Azure Websites team to check why there is the case.

这篇关于为什么我的Azure网站不断下降?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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