更改 GAE 应用程序位置 [英] Change GAE application location

查看:28
本文介绍了更改 GAE 应用程序位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个 Google Cloud SQL 实例并且我选择了亚洲区域.但是,系统告诉我 Google Cloud SQL Instance 必须与 Google App Engine (GAE) 应用程序位于同一位置.

我从未指定我的 GAE 应用程序的位置,也找不到任何方法来更改我的应用程序位置.

谁能告诉我怎么做?非常感谢.

解决方案

目前无法在亚洲地区创建应用程序或在创建后迁移应用程序.应用程序只能在美国和欧洲创建.欧洲应用程序创建专为高级帐户和根据 1 列入白名单的帐户保留.>

如果你真的需要在亚洲地区托管一个应用,你可以考虑在 GCE 上托管它,但是你会失去自动扩展.如果您需要使用服务 API,您还可以查看 [2] 中的托管 VM,但请记住,这是一项处于有限预览阶段且尚未推荐用于生产用途的新功能.

1 - https://developers.google.com/appengine/docs/premier/#location
[2] - https://developers.google.com/appengine/docs/managed-vms/

更新:通过新的开发者控制台创建的项目目前不需要白名单.仍然无法更改应用程序位置,因此有必要迁移数据(例如 Datastore 的 Datastore admin)并部署到新应用程序.更新2:现在可以在亚洲创建应用程序.位置更改仍然不可用.GCE 上的自动缩放可能.

I am trying to create a Google Cloud SQL Instance and I have chosen the Asia region. However, the system told me that the Google Cloud SQL Instance must be in the same location as the Google App Engine (GAE) application.

I never specified the location of my GAE application and I couldn't find any ways to change my application location.

Can anyone tell me how to do that? Thank you very much.

解决方案

Currently it is not possible to create an App in the Asia region or migrate app after its creation. Apps can only be created in the US and Europe. Europe App creation is reserved for Premier accounts and accounts whitelisted as per 1.

If you really require to host an App in the Asia region, you can consider hosting it on GCE, however you’ll lose automated scaling. You may also have a look at Managed VM’s at [2] in case you need to use Service APIs, however keep in mind it is a new feature that is in Limited Preview and not yet recommended for production use.

1 - https://developers.google.com/appengine/docs/premier/#location
[2] - https://developers.google.com/appengine/docs/managed-vms/

Update: No whitelist is currently necessary for projects created via the new developers console. App location change is still not possible, hence it's necessary to migrate the data (e.g. Datastore admin for Datastore) and deploy to a new app. Update2: Can create apps in Asia now. Location change still unavailable. Autoscaling on GCE possible.

这篇关于更改 GAE 应用程序位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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