Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource-control: remove warning about runaway #17209

Merged
merged 2 commits into from May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions information-schema/information-schema-runaway-watches.md
Expand Up @@ -28,10 +28,6 @@ DESC RUNAWAY_WATCHES;
8 rows in set (0.00 sec)
```

> **警告:**
>
> 该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 [issue](https://github.com/pingcap/tidb/issues) 反馈。

## 示例

查询 Runaway Queries 识别名单:
Expand Down
4 changes: 0 additions & 4 deletions sql-statements/sql-statement-query-watch.md
Expand Up @@ -7,10 +7,6 @@ summary: TiDB 数据库中 QUERY WATCH 的使用概况。

`QUERY WATCH` 语句用于在资源组中手动管理 Runaway Queries 监控列表。

hfxsd marked this conversation as resolved.
Show resolved Hide resolved
> **警告:**
>
> 该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 [issue](https://github.com/pingcap/tidb/issues) 反馈。

## 语法图

```ebnf+diagram
Expand Down
4 changes: 0 additions & 4 deletions tidb-resource-control.md
Expand Up @@ -206,10 +206,6 @@ SELECT /*+ RESOURCE_GROUP(rg1) */ * FROM t limit 10;

### 管理资源消耗超出预期的查询 (Runaway Queries)

> **警告:**
>
> 该功能目前为实验特性,不建议在生产环境中使用。该功能可能会在未事先通知的情况下发生变化或删除。如果发现 bug,请在 GitHub 上提 [issue](https://github.com/pingcap/tidb/issues) 反馈。

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。
Expand Down