Skip to content

Commit

Permalink
declare the scope of runaway queries management (#15904) (#15907)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Dec 26, 2023
1 parent f2a9738 commit 0c24e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-resource-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ SELECT /*+ RESOURCE_GROUP(rg1) */ * FROM t limit 10;
>
> 该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 [issue](https://github.com/pingcap/tidb/issues) 反馈。

Runaway Query 是指执行时间或消耗资源超出预期的查询。下面使用 **Runaway Queries** 表示管理 Runaway Query 这一功能。
Runaway Query 是指执行时间或消耗资源超出预期的查询(仅指 `SELECT` 语句)。下面使用 **Runaway Queries** 表示管理 Runaway Query 这一功能。

-v7.2.0 起,TiDB 资源管控引入了对 Runaway Queries 的管理。你可以针对某个资源组设置条件来识别 Runaway Queries,并自动发起应对操作,防止集群资源完全被 Runaway Queries 占用而影响其他正常查询。你可以在 [`CREATE RESOURCE GROUP`](/sql-statements/sql-statement-create-resource-group.md) 或者 [`ALTER RESOURCE GROUP`](/sql-statements/sql-statement-alter-resource-group.md) 中配置 `QUERY_LIMIT` 字段,通过规则识别来管理资源组的 Runaway Queries。
-v7.3.0 起,TiDB 资源管控引入了手动管理 Runaway Queries 监控列表的功能,将给定的 SQL 或者 Digest 添加到隔离监控列表,从而实现快速隔离 Runaway Queries。你可以执行语句 [`QUERY WATCH`](/sql-statements/sql-statement-query-watch.md),手动管理资源组中的 Runaway Queries 监控列表。
Expand Down

0 comments on commit 0c24e42

Please sign in to comment.