- 在 Google Cloud Console 中创建新项目
在空的云数据存储中创建一个新实体。当提示输入位置时,选择
europe-west
,根据 Cloud Datastore Locations代表欧洲的多区域。推理:
maximize the availability and durability of your database. Multi-region locations can withstand loss of entire regions and maintain availability without data loss. In the Cloud Datastore Service Level Agreement, multi-region locations define a higher monthly uptime percentage than regional locations.
接下来,创建新的 Google App Engine(标准环境)应用并将其部署到同一项目中。
Cloud Datastore Locations还解释了:
The location setting for your Google Cloud Platform project applies to both Cloud Datastore and App Engine.
不过,App Engine 是一种区域性资源。
对于这个项目,命令
gcloud app describe
将返回
locationId: europe-west
根据App Engine Locations , europe-west
代表比利时地区,而 Cloud Datastore 告诉我 europe-west
是欧洲的多区域位置。比利时奥托赫未明确列为 Cloud Datastore 的(区域)位置。
问题
locationId: europe-west
是否指的是比利时,并且比利时也是欧洲的多区域位置(适用于 Cloud Datastore,但不适用于 App Engine)?
奖励问题
如果假设正确:这是否意味着当比利时位置丢失时,客户端仍然可以访问 Cloud Datastore(因为它已复制到另一个区域),但不能访问相应的 App Engine 应用?
最佳答案
对于 Cloud Datastore,欧洲-西部是指我们的比利时-芬兰-荷兰多区域(尽管这可能会发生变化)。
是的,如果比利时区域丢失,您仍然可以从其他云区域的 Cloud Datastore 读取/写入 - 假设您在那里有一个计算层。
关于google-app-engine - locationId "europe-west"代表比利时还是欧盟的多区域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50239525/