迁移AppEngine [英] Migrating off AppEngine

查看:96
本文介绍了迁移AppEngine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在AppEngine上运行的应用程序,每天使用大约50个CPU时间。大部分花费在等待数据存储。



我正在考虑将它从AppEngine移到Rackspace Cloud Servers之类的东西,因为我认为我的应用程序可以更高效我可以将一些工作卸载到数据库中(另外我可以添加更多在AppEngine上很难实现的功能)。

那么,我将如何去移动一个AppEngine应用程序?它是使用webapp框架开发的,不使用数据存储以外的许多Google API。理想情况下,我可以保留webapp代码并交换db类以便与另一个数据库交谈(MySQL或PostgreSQL可能比CouchDB或MongoDB更可取,但这些工作也可以)。

b
$ b

更新:针对下面的评论...
我以前运行过大量的web应用程序。我以前没有运行过生产python应用程序。我假设设置python / webserver方面非常简单。我希望能够像Rackspace Cloud服务器一样使用它,因为我们可以随着我们的成长而增加资源,这将是1服务器。我们目前每天的点击量大约为20万次。



至于AppEngine优化,我们可以使用memcache(不是很多地方)。我们也在使用任务,虽然这有助于避免请求超时,但它增加了使用的资源。



我的主要问题是数据层的一个好的python替代方案,可能需要最少的代码更改。虽然我也知道可能有一些相关的问题,我没有想过要问。

解决方案

如果您可以重新部署到 appscale ,您不必重写任何App Engine代码。


I have an application running on AppEngine that uses about 50 CPU hours a day. Most of it is spent waiting for the datastore.

I am contemplating moving it off of AppEngine to something like Rackspace Cloud Servers because I think that my application can be more efficient if I can offload some of the work to the database (plus I can add more features that would be difficult to implement on AppEngine).

So, how would I go about moving an AppEngine app? It is developed with the webapp framework and does not use many Google APIs other than the datastore. Ideally I would be able to keep the webapp code and swap out the db classes for something that would talk to another database (MySQL or PostgreSQL is probably preferable to something like CouchDB or MongoDB, but those could work too).

UPDATE: In response to the comments below... I have run plenty of web applications before. I have not run production python apps before. I assume setting up the python / webserver aspect is fairly simple. My hope for going with something like Rackspace Cloud servers is that it will be 1 "server" that I can just add resources too as we grow. We are currently doing about 200k hits a day.

As for AppEngine optimizations, we are using memcache where we can (not many places). We are also using Tasks, and while that helps get around request timeouts, it adds to the resources used.

My primary question is a good python alternative for the data layer that might require the fewest code changes. Though I also know there are probably some relevant questions that I am not thinking to ask.

解决方案

If you can redeploy to appscale, you won't have to rewrite any of your App Engine code.

这篇关于迁移AppEngine的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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