python - Google App Engine 应用程序极慢

标签 python django google-app-engine

我在 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/

相关文章:

python - 使用 numpy 快速迭代像素

python - 列表的逻辑索引

python - Django、Jenkins 和 PyLint 关注一切

python - 将日期标签添加到 reportlab LinePlot 图表

java - 使用 appengine 开发服务器 (java) 测试邮件

java - 创建 App Engine 连接的 Android 项目

google-app-engine - 如何从 Google App Engine High Replication 数据存储中导出数据?

python - tensorflow 中的 classifier.predict 错误(shape_and_slice 规范中的形状不匹配)

python - 缩放的 QPixmap 看起来很糟糕

python - 如何使用 get_object_or_404 排除结果?