【发布时间】:2021-03-31 14:16:38
【问题描述】:
是否可以使用 ARM 模板将 cosmosdb 容器从手动切换到自动缩放?
我正在尝试使用以下 arm 来实现这一点,但我仍然将 TU 设置设置为手动
{
"name": "db/collection/container/default",
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings",
"apiVersion": "2020-03-01",
"properties": {
"resource": {
"throughput": "4000",
"autoscaleSettings": {
"maxThroughput": "800000"
}
}
},
【问题讨论】:
-
我认为通过门户modify the setting 更容易。一定要用arm模板吗?
-
我认为 arm 模板用于部署,所以也许this doc 可以帮助你。顺便说一句,您可以创建一个 cosmosdb 和一个自动缩放容器,而不是选择导出模板以查看此类实例的设置。
-
我有多区域部署,其中一些已经部署,一些正在升级所有部署都是通过 arm 模板完成的,除了 cosmodbcollections,但如果是,我也想切换到通过 arm 部署它们没有那么难,不值得花时间。
-
感谢您的回复,马克提供了一个很好的答案:)
-
请注意,如果你达到 800,000,你将无法回到 4000。
Minimum throughput = Highest RU/s provisioned on the database / 100docs.microsoft.com/nl-nl/azure/cosmos-db/…
标签: azure-cosmosdb autoscaling arm-template throughput