查询限制策略Query throttling policy
定义查询限制策略以限制群集同时执行的并发查询的数量。Define the query throttling policy to limit the amount of concurrent queries the cluster is executing at the same time. 策略可以在运行时更改,在 alter policy 命令完成后立即进行。The policy can be changed at run-time and takes place immediately after the alter policy command completes.
- 使用
.show cluster policy querythrottling
显示群集的当前查询限制策略。Use.show cluster policy querythrottling
to show the current query throttling policy of a cluster. - 使用
.alter cluster policy querythrottling
设置群集的当前查询限制策略。Use.alter cluster policy querythrottling
to set the current query throttling policy of a cluster. - 使用
.delete cluster policy querythrottling
删除群集的当前查询限制策略。Use.delete cluster policy querythrottling
to delete current query throttling policy of a cluster.
备注
如果未定义查询限制策略,则大量并发查询可能会导致群集无法访问或性能下降。If you don't define a query throttling policy, a high number of concurrent queries may lead to cluster inaccessibility or performance degradation.