Skip to content

tiflash: Add new configs introduce on v9.0.0-beta.2 #20574

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -1565,8 +1565,32 @@ store --jq='.stores[].store | select(.labels | length>0 and contains([{"key":"en
```

```
{"id":1,"address":"127.0.0.1:20161""state_name":"Up"}
{"id":5,"address":"127.0.0.1:20162""state_name":"Up"}
{"id":1,"address":"127.0.0.1:20161","state_name":"Up"}
{"id":5,"address":"127.0.0.1:20162","state_name":"Up"}
...
```

### 查询存算分离架构下的 TiFlash 节点

查找[存算分离架构](/tiflash/tiflash-disaggregated-and-s3.md)下的 TiFlash Write Node:

```bash
store --jq='.stores[].store | select(.labels | length>0 and contains([{"key":"engine","value":"tiflash"}, {"key":"engine_role","value":"write"}])) | {id, address, labels, state_name}'
```

```
{"id":130,"address":"172.31.8.1:10161","labels":[{"key":"engine_role","value":"write"},{"key":"engine","value":"tiflash"}],"state_name":"Up"}
...
```

查找[存算分离架构](/tiflash/tiflash-disaggregated-and-s3.md)下的 TiFlash Compute Node:

```bash
store --jq='.stores[].store | select(.labels | length>0 and contains([{"key":"engine","value":"tiflash_compute"}])) | {id, address, labels, state_name}'
```

```
{"id":131,"address":"172.31.9.1:10161","labels":[{"key":"engine","value":"tiflash_compute"}],"state_name":"Up"}
...
```

Expand Down
15 changes: 15 additions & 0 deletions tiflash/tiflash-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ summary: TiFlash 配置参数包括 PD 调度参数和 TiFlash 配置参数。PD
- 单位:Byte。目前不支持如 `"10GB"` 的设置。
- `capacity` 列表的长度应当与 [`storage.main.dir`](#dir) 列表长度保持一致。

#### `storage.api_version` <span class="version-mark">从 v9.0.0 版本开始引入</span>

- TiFlash 与 PD、TiKV 进行通讯时的接口版本。
- 可选值:
- `1`:TiFlash 使用 API V1 与 PD、TiKV 进行通信。
- `2`:TiFlash 使用 API V2 与 PD、TiKV 进行通信,为多租户特性提供支持。
- 默认值:`1`

#### storage.latest

##### `dir`
Expand Down Expand Up @@ -434,6 +442,13 @@ I/O 限流功能相关配置。
- 表示 PageStorage 单个数据文件中有效数据的最低比例。当某个数据文件的有效数据比例低于该值时,会触发 GC 对该文件的数据进行整理。
- 默认值:`0.5`

##### `disagg_blocklist_wn_store_id` <span class="version-mark">从 v9.0.0 版本开始引入</span>

- 控制在存算分离架构下,TiFlash Compute Node 不会将请求分发至哪些 TiFlash Write Node。
- 其值为使用 `,` 分隔的 store_id 字符串。例如,设置为 `"140,141"` 表示 TiFlash Compute Node 不会将请求分发至 store_id 为 `140` 或 `141` 的 TiFlash Write Node。可以使用 [pd-ctl](/pd-control.md#查询存算分离架构下的-tiflash-节点) 查找集群中 TiFlash Write Node 的 store_id。
- 如果其值为空字符串 `""`,表示 TiFlash Compute Node 会将请求分发至所有 TiFlash Write Node。
- 默认值:`""`

##### `max_bytes_before_external_group_by` <span class="version-mark">从 v7.0.0 版本开始引入</span>

- 表示带 `GROUP BY` key 的 Hash Aggregation 算子在触发 spill 之前的最大可用内存,超过该阈值之后 Hash Aggregation 会采用[数据落盘](/tiflash/tiflash-spill-disk.md)的方式来减小内存使用。
Expand Down