简体   繁体   English

如何将我的项目添加到多个 GCP 资源位置?

[英]How to add my project to multiple GCP resource locations?

I have built a firebase project which has "asia-south1" as its default GCP location, I choose this location because other servers had too much latency.我已经构建了一个 firebase 项目,它的默认 GCP 位置为“asia-south1”,我选择这个位置是因为其他服务器的延迟太大。 But now I want the application to work in other countries as well, The data of one GCP location will also be accessed by others if we have multiple firebase projects and now I have really no idea how to proceed, your help would be really appreciated.但是现在我希望该应用程序也可以在其他国家/地区运行,如果我们有多个 firebase 项目,其他人也可以访问一个 GCP 位置的数据,现在我真的不知道如何继续,非常感谢您的帮助。

Hope I was able to clear the question希望我能够解决这个问题

Thank you谢谢

It is unfortunately impossible to change the location of Firestore resource locations after setting up Functions, RTDB or Firestore.不幸的是,在设置 Functions、RTDB 或 Firestore 后无法更改 Firestore 资源位置的位置。 As per The Docs , Warning: Setting the location for one of these services (that is, Cloud Firestore, Cloud Storage, or scheduled functions) also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.根据The DocsWarning: Setting the location for one of these services (that is, Cloud Firestore, Cloud Storage, or scheduled functions) also sets the location for the others. After you set your project's default GCP resource location, you cannot change it. Warning: Setting the location for one of these services (that is, Cloud Firestore, Cloud Storage, or scheduled functions) also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.

Your Cloud Firestore data can be kept in either a regional or a multi-regional location.您的 Cloud Firestore 数据可以保存在区域或多区域位置。 The developer must choose a location when Firestore is enabled in a project.在项目中启用 Firestore 时,开发人员必须选择一个位置。

The only way for a developer to alter the location of data in an existing project is to start a new Firestore project at the desired location and transfer the data using the Import/Export capability.开发人员在现有项目中更改数据位置的唯一方法是在所需位置启动新的 Firestore 项目并使用导入/导出功能传输数据。 A Firestore project's location is not currently possible to be changed. Firestore 项目的位置目前无法更改。

This is the public documentation on Firestore locations .这是有关Firestore 位置的公共文档。

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

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