您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

了解如何将预留折扣应用于 Azure Cosmos DBUnderstand how the reservation discount is applied to Azure Cosmos DB

购买 Azure Cosmos DB 保留容量后,预留折扣会自动应用到与预留属性和数量匹配的 Azure Cosmos DB 资源。After you buy an Azure Cosmos DB reserved capacity, the reservation discount is automatically applied to Azure Cosmos DB resources that match the attributes and quantity of the reservation. 预留涵盖为 Azure Cosmos DB 资源预配的吞吐量。A reservation covers the throughput provisioned for Azure Cosmos DB resources. 它不涵盖软件、网络、存储或预定义的容器费用。It doesn’t cover software, networking, storage, or predefined container charges.

如何应用预留折扣How reservation discount is applied

预留折扣为“使用或丢失” 。A reservation discount is "use-it-or-lose-it". 因此,如果你在任何小时内没有匹配资源,那么你将丢失该小时的预留数量。So, if you don't have matching resources for any hour, then you lose a reservation quantity for that hour. 不能结转未使用的预留小时数。You can't carry forward unused reserved hours.

关闭资源时,预留折扣将自动应用于指定范围内的另一个匹配资源。When you shut down a resource, the reservation discount automatically applies to another matching resource in the specified scope. 如果在指定的范围内找不到匹配的资源,则预留小时数将丢失 。If no matching resources are found in the specified scope, then the reserved hours are lost.

预留折扣应用于 Azure Cosmos DB 帐户Reservation discount applied to Azure Cosmos DB accounts

预留折扣以每小时为基础,以每秒请求单位数(RU/秒)的形式应用于预配吞吐量A reservation discount is applied to provisioned throughput in terms of request units per second (RU/s) on an hour-by-hour basis. 对于不是整小时运行的 Azure Cosmos DB 资源,预留折扣会自动应用到与预留属性匹配的其他 Cosmos DB 资源。For Azure Cosmos DB resources that don't run the full hour, the reservation discount is automatically applied to other Cosmos DB resources that match the reservation attributes. 折扣可以应用到同时运行的 Azure Cosmos DB 资源。The discount can apply to Azure Cosmos DB resources that are running concurrently. 如果与预留属性匹配的 Cosmos DB 资源不是整小时运行,则无法获得该小时的完整预留折扣权益。If you don't have Cosmos DB resources that run for the full hour and that match the reservation attributes, you don't get the full benefit of the reservation discount for that hour.

折扣是分层式的。The discounts are tiered. 请求单位越高的预留所提供的折扣越高。Reservations with higher request units provide higher discounts.

预订购买将对所有区域应用折扣,其折扣率相当于区域的按需定价。The reservation purchase will apply discounts to all regions in the ratio equivalent to the regional on-demand pricing. 有关每个区域的预留折扣率,请参阅本文的各区域的预留折扣部分。For reservation discount ratios in each region, see the Reservation discount per region section of this article.

各区域的预留折扣Reservation discount per region

预留折扣以每小时为基础应用于 Azure Cosmos DB 吞吐量成本。The reservation discount is applied to Azure Cosmos DB throughput costs on an hour-by-hour basis. 它应用于单个订阅或已注册/帐户范围。It's applied at either the single subscription or the enrolled/account scope. 预留折扣按以下比率应用于不同区域的计量使用量:The reservation discount applies to meter usage in different regions in the following ratios:

计量描述Meter description 区域Region 比率Ratio
Azure Cosmos DB - 100 RU/秒/小时 - 亚太东南部Azure Cosmos DB - 100 RU/s/Hour - AP Southeast 亚太东南部AP Southeast 11
Azure Cosmos DB - 100 RU/秒/小时 - 亚太东部Azure Cosmos DB - 100 RU/s/Hour - AP East 亚太东部AP East 11
Azure Cosmos DB - 100 RU/秒/小时 - 欧洲北部Azure Cosmos DB - 100 RU/s/Hour - EU North 欧洲北部EU North 11
Azure Cosmos DB - 100 RU/秒/小时 - 韩国南部Azure Cosmos DB - 100 RU/s/Hour - KR South 韩国南部KR South 11
Azure Cosmos DB - 100 RU/秒/小时 - 欧洲西部Azure Cosmos DB - 100 RU/s/Hour - EU West 欧洲西部EU West 11
Azure Cosmos DB - 100 RU/秒/小时 - 韩国中部Azure Cosmos DB - 100 RU/s/Hour - KR Central 韩国中部KR Central 11
Azure Cosmos DB - 100 RU/秒/小时 - 英国南部Azure Cosmos DB - 100 RU/s/Hour - UK South 英国南部UK South 11
Azure Cosmos DB - 100 RU/秒/小时 - 英国西部Azure Cosmos DB - 100 RU/s/Hour - UK West 英国西部UK West 11
Azure Cosmos DB - 100 RU/秒/小时 - 英国北部Azure Cosmos DB - 100 RU/s/Hour - UK North 英国北部UK North 11
Azure Cosmos DB - 100 RU/秒/小时 - 英国南部 2Azure Cosmos DB - 100 RU/s/Hour - UK South 2 英国南部 2UK South 2 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国东部 2Azure Cosmos DB - 100 RU/s/Hour - US East 2 美国东部 2US East 2 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国中北部Azure Cosmos DB - 100 RU/s/Hour - US North Central 美国中北部US North Central 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国西部Azure Cosmos DB - 100 RU/s/Hour - US West 美国西部US West 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国中部Azure Cosmos DB - 100 RU/s/Hour - US Central 美国中部US Central 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国西部 2Azure Cosmos DB - 100 RU/s/Hour - US West 2 美国西部 2US West 2 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国中西部Azure Cosmos DB - 100 RU/s/Hour - US West Central 美国中西部US West Central 11
Azure Cosmos DB - 100 RU/秒/小时 - 美国东部Azure Cosmos DB - 100 RU/s/Hour - US East 美国东部US East 11
Azure Cosmos DB - 100 RU/秒/小时 - 南非北部Azure Cosmos DB - 100 RU/s/Hour - SA North 南非北部SA North 11
Azure Cosmos DB - 100 RU/秒/小时 - 南非西部Azure Cosmos DB - 100 RU/s/Hour - SA West 南非西部SA West 11
Azure Cosmos DB - 100 RU/秒/小时 - 印度南部Azure Cosmos DB - 100 RU/s/Hour - IN South 印度南部IN South 1.03751.0375
Azure Cosmos DB - 100 RU/秒/小时 - 加拿大东部Azure Cosmos DB - 100 RU/s/Hour - CA East 加拿大东部CA East 1.11.1
Azure Cosmos DB - 100 RU/秒/小时 - 日本东部Azure Cosmos DB - 100 RU/s/Hour - JA East 日本东部JA East 1.1251.125
Azure Cosmos DB - 100 RU/秒/小时 - 日本西部Azure Cosmos DB - 100 RU/s/Hour - JA West 日本西部JA West 1.1251.125
Azure Cosmos DB - 100 RU/秒/小时 - 印度西部Azure Cosmos DB - 100 RU/s/Hour - IN West 印度西部IN West 1.13751.1375
Azure Cosmos DB - 100 RU/秒/小时 - 印度中部Azure Cosmos DB - 100 RU/s/Hour - IN Central 印度中部IN Central 1.13751.1375
Azure Cosmos DB - 100 RU/秒/小时 - 澳大利亚东部Azure Cosmos DB - 100 RU/s/Hour - AU East 澳大利亚东部AU East 1.151.15
Azure Cosmos DB - 100 RU/秒/小时 - 加拿大中部Azure Cosmos DB - 100 RU/s/Hour - CA Central 加拿大中部CA Central 1.21.2
Azure Cosmos DB - 100 RU/秒/小时 - 法国中部Azure Cosmos DB - 100 RU/s/Hour - FR Central 法国中部FR Central 1.251.25
Azure Cosmos DB - 100 RU/秒/小时 - 巴西南部Azure Cosmos DB - 100 RU/s/Hour - BR South 巴西南部BR South 1.51.5
Azure Cosmos DB - 100 RU/秒/小时 - 澳大利亚中部Azure Cosmos DB - 100 RU/s/Hour - AU Central 澳大利亚中部AU Central 1.51.5
Azure Cosmos DB - 100 RU/秒/小时 - 澳大利亚中部 2Azure Cosmos DB - 100 RU/s/Hour - AU Central 2 澳大利亚中部 2AU Central 2 1.51.5
Azure Cosmos DB - 100 RU/秒/小时 - 法国南部Azure Cosmos DB - 100 RU/s/Hour - FR South 法国南部FR South 1.6251.625

展示预留折扣应用方式的方案Scenarios that show how the reservation discount is applied

请考虑以下预留要求:Consider the following requirements for a reservation:

  • 所需吞吐量:50,000 RU/秒Required throughput: 50,000 RU/s
  • 使用的区域数:2Regions used: 2

在本例中,总按需费用针对这两个区域中数量为 500 的 100 RU/秒计量。In this case, your total on-demand charges are for 500 quantity of 100 RU/s meter in these two regions. 每小时的总 RU/秒消耗量为 100,000。The total RU/s consumption is 100,000 every hour.

方案 1Scenario 1

例如,假设需要在美国中北部和美国西部区域中部署 Azure Cosmos DB。For example, assume that you need Azure Cosmos DB deployments in the US North Central and US West regions. 每个区域的吞吐量消耗均为 50,000 RU/秒。Each region has a throughput consumption of 50,000 RU/s. 则预留购买 100,000 RU/秒完全能够平衡你的按需费用。A reservation purchase of 100,000 RU/s would completely balance your on-demand charges.

预留所涵盖的折扣的计算方式为:吞吐量消耗 * reservation_discount_ratio_for_that_region。The discount that a reservation covers is computed as: throughput consumption * reservation_discount_ratio_for_that_region. 对于美国中北部和美国西部区域,预留折扣率为 1。For the US North Central and US West regions, the reservation discount ratio is 1. 总共折扣的 RU/秒为 100,000。So, the total discounted RU/s are 100,000. 该值的计算方式为:50,000 * 1 + 50,000 * 1 = 100,000 RU/秒。This value is computed as: 50,000 * 1 + 50,000 * 1 = 100,000 RU/s. 无需按照常规即用即付费率支付任何额外费用。You don't have to pay any additional charges at the regular pay-as-you-go rates.

计量描述Meter description 区域Region 吞吐量消耗(RU/秒)Throughput consumption (RU/s) 应用于 RU/秒的预留折扣Reservation discount applied to RU/s
Azure Cosmos DB - 100 RU/秒/小时 - 美国中北部Azure Cosmos DB - 100 RU/s/Hour - US North Central 美国中北部US North Central 50,00050,000 50,00050,000
Azure Cosmos DB - 100 RU/秒/小时 - 美国西部Azure Cosmos DB - 100 RU/s/Hour - US West 美国西部US West 50,00050,000 50,00050,000

方案 2Scenario 2

例如,假设需要在澳大利亚中部 2 和法国南部区域署 Azure Cosmos DB。For example, assume that you need Azure Cosmos DB deployments in the AU Central 2 and FR South regions. 每个区域的吞吐量消耗均为 50,000 RU/秒。Each region has a throughput consumption of 50,000 RU/s. 则预留购买 100,000 RU/秒将在以下情况下适用(假定澳大利亚中部 2 的使用情况为第一次打折):A reservation purchase of 100,000 RU/s would be applicable as follows (assuming that AU Central 2 usage was discounted first):

计量描述Meter description 区域Region 吞吐量消耗(RU/秒)Throughput consumption (RU/s) 应用于 RU/秒的预留折扣Reservation discount applied to RU/s
Azure Cosmos DB - 100 RU/秒/小时 - 澳大利亚中部 2Azure Cosmos DB - 100 RU/s/Hour - AU Central 2 澳大利亚中部 2AU Central 2 50,00050,000 50,00050,000
Azure Cosmos DB - 100 RU/秒/小时 - 法国南部Azure Cosmos DB - 100 RU/s/Hour - FR South 法国南部FR South 50,00050,000 15,38415,384

澳大利亚中部 2 区域的 50,000 个使用单位相当于 75,000 RU/秒的可计费使用量(或规范化使用量)。A usage of 50,000 units in the AU Central 2 region corresponds to 75,000 RU/s of billable usage (or normalized usage). 该值的计算方式为:吞吐量消耗 * reservation_discount_ratio_for_that_region。This value is computed as: throughput consumption * reservation_discount_ratio_for_that_region. 计算结果等于 75,000 RU/秒的可计费或规范化使用量。The computation equals 75,000 RU/s of billable or normalized usage. 该值的计算方式为:50,000 * 1.5 = 75,000 RU/秒。This value is computed as: 50,000 * 1.5 = 75,000 RU/s.

预留购买 100,000 RU/秒可抵消澳大利亚中部 2 的 75,000 RU/秒。The 100,000 RU/s of reservation purchase would offset the 75,000 RU/s in AU Central 2. 留下 25,000 RU/秒给法国南部区域。It leaves 25,000 RU/s to the FR South region. 在剩余的 25,000 RU/秒中,会向法国南部区域应用 15,384 RU/秒的预留折扣。From the remaining 25,000 RU/s, a reservation discount of 15,384 RU/s is applied to the FR South region. 该折扣值的计算方式为:25,000 / 1.625 = 15,384 RU/秒。The discount value is computed as: 25,000 / 1.625 = 15,384 RU/s. 按照正常的即用即付费率收取法国南部区域中剩余的 34,616 RU/秒的费用。The remaining 34,616 RU/s in the FR South region are charged at the normal pay-as-you-go rates.

Azure 计费系统将向第一个处理且与预留配置相匹配的实例分配预留计费权益。The Azure billing system will assign the reservation billing benefit to the first instance that is processed and that matches the reservation configuration. 例如,在本例中为澳大利亚中部 2。For example, it's AU Central 2 in this case.

若要了解 Azure 预留的应用情况并在计费使用情况报告中查看该信息,请参阅了解 Azure 预留使用情况To understand and view the application of your Azure reservations in billing usage reports, see Understand Azure reservation usage.

需要帮助?Need help? 请联系我们。Contact us.

如有任何疑问或需要帮助,请创建支持请求If you have questions or need help, create a support request.

后续步骤Next steps

若要了解有关 Azure 预留的详细信息,请参阅以下文章:To learn more about Azure reservations, see the following articles: