简体   繁体   English

是否可以更改 Google Cloud Platform 项目的区域?

[英]Is it possible to change the region of a Google Cloud Platform project?

If I go to the Google Developer Console then I can see all my Cloud Platform projects, but not their regions.如果我转到Google Developer Console,则可以看到我所有的 Cloud Platform 项目,但看不到它们的区域。

How do I see the region of each project?我如何查看每个项目的区域? And is it possible to change the region once it has been set?一旦设置了区域,是否可以更改区域?

Thanks for any help.谢谢你的帮助。

Regarding the BigQuery aspect of this question:关于这个问题的 BigQuery 方面:

Data Locations on a table are immutable once set.表上的数据位置一经设置便不可变。

In order to change the location, the easiest solution would be to export the data to Google Cloud Storage, delete the table, re-create the table in the correct region, then import the data.要更改位置,最简单的解决方案是将数据导出到 Google Cloud Storage,删除表,在正确的区域中重新创建表,然后导入数据。

There is no such thing as a region of a GCP project.没有 GCP 项目的区域这样的东西。
In other words, region/location is specific to resources, and a GCP project is not permanently tied to a single region/location.换句话说,区域/位置特定于资源,并且 GCP 项目不会永久绑定到单个区域/位置。
For example, you can have a project with multiple BigQuery datasets in different regions.例如,您可以拥有一个在不同区域具有多个 BigQuery 数据集的项目。
That same project can have many Compute Engine instances running, each one in different location/region.同一个项目可以运行多个 Compute Engine 实例,每个实例位于不同的位置/区域。

There is a default region that is set per GCP project, but that can always be overwritten when creating resources in GCP, and is mainly used to guess default location when location is not specified in API calls.每个 GCP 项目都有一个默认区域,但是在 GCP 中创建资源时总是可以覆盖的,主要用于在 API 调用中未指定位置时猜测默认位置。

https://cloud.google.com/appengine/docs/python/console/#server-location https://cloud.google.com/appengine/docs/python/console/#server-location

Setting the server location设置服务器位置

When you create your project, you can specify the location from which it will be served.创建项目时,您可以指定提供服务的位置。 In the new project dialog, click on the link to Show Advanced Options, and select a location from the pulldown menu:在新项目对话框中,单击显示高级选项的链接,然后从下拉菜单中选择一个位置:

  • us-central美国中央
  • us-east1美国东部1
  • europe-west欧洲西部

If you select us-east1 your project will be served from a single region in South Carolina.如果您选择 us-east1,您的项目将从南卡罗来纳州的一个地区提供服务。 The us-central and europe-west locations contain multiple regions in the United States and western Europe, respectively.美国中部和欧洲西部位置分别包含美国和西欧的多个区域。 Projects deployed to either us-central or europe-west may be served from any one of the regions they contain.部署到美国中部或欧洲西部的项目可以从它们包含的任何一个区域提供服务。 If you want to colocate your App Engine instances with other single-region services, such as Google Compute Engine, you should select us-east1.如果要将 App Engine 实例与其他单区域服务(例如 Google Compute Engine)并置,则应选择 us-east1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM