简体   繁体   English

对于Azure Cosmos DB,是否可以从单区域写入改为多区域写入?

[英]For Azure Cosmos DB, is it possible to change from single region write to multi region write?

As Cosmos DB cost extra for multi-region write, is it possible to start with single region write and upgrade to multi-region write at a later stage or will that require a database migration?由于 Cosmos DB 多区域写入需要额外费用,是否可以从单区域写入开始,然后升级到多区域写入,或者是否需要迁移数据库?

From the pricing information it looks like the multi-region write pricing kicks in even if you don't have any geo redundancy configured.从定价信息来看,即使您没有配置任何地理冗余,多区域写入定价似乎也会生效。 So it looks like you either have to go with a high cost from the start, or choose to pay the price through a migration at a later stage.所以看起来你要么从一开始就付出高昂的代价,要么选择在后期通过迁移来付出代价。 Is this a correct observation?这是一个正确的观察吗?

Multi-region write functionality can be enable after a single region account has been created.创建single region帐户后,可以启用多区域写入功能。 This can be done via the Azure Portal or via Powershell: Set up Azure Cosmos DB global distribution using the SQL API这可以通过 Azure 门户或 Powershell 完成: 使用 SQL API 设置 Azure Cosmos DB 全球分发

This applies to the SQL(Core) API.这适用于 SQL(Core) API。

Powershell example: Replicate an Azure Cosmos DB database account in multiple regions and configure failover priorities using PowerShell Powershell 示例: 在多个区域复制 Azure Cosmos DB 数据库帐户并使用 PowerShell 配置故障转移优先级

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

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