Google App Engine 应用程序速度极慢 [英] Google App Engine Application Extremely slow
问题描述
我在 Google App Engine 中创建了一个 Hello World 网站.它使用的是没有任何补丁的 Django 1.1.
I created a Hello World website in Google App Engine. It is using Django 1.1 without any patch.
即使只是一个非常简单的网页,也需要很长时间,而且经常会超时.
Even though it is just a very simple web page, it takes long time and often it times out.
有什么建议可以解决这个问题吗?
Any suggestions to solve this?
注意:第一次调用后响应速度很快.
Note: It is responding fast after the first call.
推荐答案
这是一个可怕的建议,但我还是会去做:
This is a horrible suggestion but I'll make it anyway:
构建一个小的客户端应用程序,或者只是使用 wget
和 cron
来定期访问您的应用程序,可能每 5 分钟左右一次.这应该可以防止 Google 将其置于休眠状态.
Build a little client application or just use wget
with cron
to periodically access your app, maybe once every 5 minutes or so. That should keep Google from putting it into a dormant state.
我说这是一个可怕的建议,因为它浪费资源并滥用 Google 的免费服务.我希望您只在短暂的测试/启动阶段执行此操作.
I say this is a horrible suggestion because it's a waste of resources and an abuse of Google's free service. I'd expect you to do this only during a short testing/startup phase.
这篇关于Google App Engine 应用程序速度极慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!