我在 Google App Engine 中创建了一个 Hello World 网站。它使用的是 Django 1.1,没有任何补丁。
虽然只是一个非常简单的网页,但它需要很长时间,而且经常会超时。
有解决这个问题的建议吗?
注意:第一次通话后响应很快。
最佳答案
现在 Google 添加了“始终在线”付款选项,每天 0.30 美元。
使用此功能,您的应用程序将不再需要冷启动。
Always On
While warmup requests help your application scale smoothly, they do not help if your application has very low amounts of traffic. For high-priority applications with low traffic, you can reserve instances via App Engine's Always On feature.
Always On is a premium feature 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. Additionally, if an Always On instance dies accidentally, App Engine automatically restarts the instance with a warmup request. As a result, Always On applications should be sure to do as much initialization as possible during warmup requests.
Even after enabling Always On, your application may experience loading requests if there is a sudden increase in traffic.
To enable Always On, go to the Billing Settings page in your application's Admin Console, and click the Always On checkbox.
http://code.google.com/intl/de-DE/appengine/docs/adminconsole/instances.html
关于python - Google App Engine 应用程序极慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1854821/