[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# Firestore with MongoDB compatibility locations\n==============================================\n\nWhen you provision a Firestore database, you must choose a\n*location* for it. To reduce latency and increase availability, store\nyour data close to the users and services that need it.\n\nYou can optionally [create multiple databases](/firestore/mongodb-compatibility/docs/create-databases) in your\nproject, each with its own location setting.\n\nBe aware that once you provision a database, you cannot change its\nlocation setting.\n\nTypes of locations\n------------------\n\nYou can store your Firestore with MongoDB compatibility data in a\n[*multi-region* location](#location-mr) or a [*regional* location](#location-r).\n\n### Multi-region locations\n\nSelect a multi-region location to maximize the availability and\ndurability of your database.\n\nA multi-region location consists of a defined set of\n[regions](https://cloud.google.com/docs/geography-and-regions#regions_and_zones) where multiple replicas of the database\nare stored. Each replica is either a read-write replica which contains all of the\ndata in the database or a witness replica which does not maintain a full set of\ndata but participates in replication.\n\nBy replicating the data between multiple regions, data\ncan continue to be served even with the loss of an entire\nregion. Within a region, data is replicated across\n[zones](https://cloud.google.com/docs/geography-and-regions#regions_and_zones) so that data can continue to be served\nwithin that region even with the loss of a zone.\n\nFirestore with MongoDB compatibility supports the following multi-region locations:\n\n### Regional locations\n\nA regional location is a specific geographic place, such as South Carolina. Data\nin a regional location is replicated in multiple zones within a\n[region](https://cloud.google.com/docs/geography-and-regions#regional_resources). All regional locations are separated from other regional\nlocations by at least 100 miles.\n\nSelect a regional location for lower costs, for lower write latency if your\napplication is sensitive to latency, or for\n[co-location with other Google Cloud resources](https://cloud.google.com/about/locations/#products-available-by-region).\n\nFirestore with MongoDB compatibility supports the following regional resource locations:\n\nLocation SLA\n------------\n\nYour Firestore with MongoDB compatibility location type determines the\n[Service Level Agreement (SLA)](/firestore/sla)\nuptime percentage at General Availability (GA):\n\nLocation pricing\n----------------\n\nYour Firestore with MongoDB compatibility location determines the cost of database\noperations.\n\nFor a comprehensive explanation of pricing per region and per region type,\nsee [Understand Firestore with MongoDB compatibility billing](https://cloud.google.com/firestore/enterprise/pricing).\n\nView the location of your databases\n-----------------------------------\n\nUse one of the following methods to view the location setting for your databases:\n\n- Run the [`gcloud firestore databases list`](https://cloud.google.com//sdk/gcloud/reference/firestore/databases/list)\n command.\n\n- Open the\n [database list](https://console.cloud.google.com/firestore/databases) in the Google Cloud console.\n The location for each database is in the location column.\n\nNext steps\n----------\n\n- To create a Firestore with MongoDB compatibility database in a specific location, see\n [Create and manage databases](/firestore/mongodb-compatibility/docs/create-databases)\n\n- For more information about building applications to meet your latency,\n availability, and durability requirements, refer to\n [Geography and Regions](https://cloud.google.com/docs/geography-and-regions#multi-regional_resources)."]]