Google App Engine-等待时间太长,无法尝试为您的请求提供服务后,请求被中止 [英] Google App Engine - Request was aborted after waiting too long to attempt to service your request

查看:179
本文介绍了Google App Engine-等待时间太长,无法尝试为您的请求提供服务后,请求被中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时我会收到此错误.

请求也等待中止 渴望为您服务 要求.这很可能表明 你已经达到你的 同时动态请求限制. 这几乎总是由于 您的应用中的延迟过高. 请参阅 http://code.google.com/appengine/docs/quotas.html 有关更多详细信息.

Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.html for more details.

导致请求的请求具有10秒的延迟和0ms的cpu时间.这是一个简单的jsp页面,它根本不需要花费很长时间.另外,我的应用流量非常小,并且一直发生,这是唯一正在处理的请求.

The request that causes it has 10 seconds of latency and 0ms of cpu time. It is a simple jsp page that doesn't do anything that takes long at all. Also, my app is very low traffic, and all the times it has happened, it is the only request being processed.

这是什么原因造成的?

推荐答案

如果您的应用程序流量较低,则可能是启动时间.似乎存在一个持续的问题,即启动一个实例需要很长时间,以至于它们违反了时间限制.

If your application is low-traffic, it's possibly the startup time. There seems to be an ongoing issue where it takes so long to start an instance up, that they breach the time limit.

有些人通过执行每隔几分钟运行一次cron/scheduled的请求而没有解决任何问题(尽管我个人认为这适得其反,在某种程度上破坏了Google降低您的应用程序运行速度的原因!).

Some people have "worked around" this by having a cron/scheduled request that runs every few minutes that does nothing (though personally I think is counter-productive, somewhat undermining the reason Google spin your app down!).

他们的bugtracker中有一个与此有关的问题:

There was an issue in their bugtracker about this:

http://code.google.com/p/googleappengine/issues/detail?id = 2456

现在已将其标记为1.4版已修复,这里有一些信息:

It's now marked as fixed for version 1.4, and there's a little info on it here:

http://googleappengine. blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html

始终在线-对于流量低或可变的高优先级应用程序,您现在可以通过App Engine的始终在线功能保留实例. Always On是一项高级功能,每月收费9美元,该功能可保留您的应用程序的三个实例,即使应用程序没有流量也永远不会关闭它们.这样可以减轻加载请求对流量较小或可变的应用程序的影响.

Always On - For high-priority applications with low or variable traffic, you can now reserve instances via App Engine's Always On feature. Always On is a premium feature costing $9 per month which reserves three instances of your application, never turning them off, even if the application has no traffic. This mitigates the impact of loading requests on applications that have small or variable amounts of traffic.

这篇关于Google App Engine-等待时间太长,无法尝试为您的请求提供服务后,请求被中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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