容量策略控制命令Capacity policy control commands

以下控制命令可用于管理群集的容量策略The following control commands can be used for managing a cluster's capacity policy.

命令需要 AllDatabasesAdmin 权限。The commands require AllDatabasesAdmin permissions.

显示群集策略容量show cluster policy capacity

.show cluster policy capacity

显示群集的当前容量策略。Displays the current capacity policy for the cluster.

输出Output

策略名称Policy Name 实体名称Entity Name 策略Policy 子实体Child entities 实体类型Entity Type
CapacityPolicyCapacityPolicy 表示策略的 JSON 格式字符串JSON-formatted string that represents the policy 群集中的数据库列表The list of databases in the cluster 群集Cluster

更改群集策略容量alter cluster policy capacity

.alter cluster policy capacity @'{ ... capacity policy JSON representation ... }'
.alter-merge cluster policy capacity @'{ ... capacity policy partial-JSON representation ... }'

注意:对群集容量策略的更改可能最多需要 1 小时才能生效。Note: Changes to the cluster capacity policy could take up to 1 hour to take effect.

示例:Examples:

  • 显式更改群集策略的所有属性:Explicitly altering all properties of the cluster policy:
.alter cluster policy capacity
'{'
  '"IngestionCapacity": {'
    '"ClusterMaximumConcurrentOperations": 512,'
    '"CoreUtilizationCoefficient": 0.75'
  '},'
  '"ExtentsMergeCapacity": {'
    '"MaximumConcurrentOperationsPerNode": 1'
  '},'
  '"ExtentsPurgeRebuildCapacity": {'
    '"MaximumConcurrentOperationsPerNode": 1'
  '},'
  '"ExportCapacity": {'
    '"ClusterMaximumConcurrentOperations": 100,'
    '"CoreUtilizationCoefficient": 0.25'
  '},'
  '"ExtentsPartitionCapacity": {'
    '"ClusterMaximumConcurrentOperations": 4'
  '}'
'}'
  • 更改群集级别策略的单个属性,并保持所有其他属性不变:Altering a single property of the cluster level policy, keeping all other properties intact:
.alter-merge cluster policy capacity
'{'
  '"ExtentsPartitionCapacity": {'
    '"MaximumConcurrentOperationsPerNode": 4'
  '}'
'}'