Skip to content

Commit 4af5646

Browse files
committed
Polish
Signed-off-by: JaySon-Huang <[email protected]>
1 parent 29355ce commit 4af5646

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

tiflash/troubleshoot-tiflash.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ If TiFlash replicas consistently fail to be created since the TiDB cluster is de
174174
175175
> **Note:**
176176
>
177-
> `max-replicas` is defaulted to 3. In production environments, the value is usually fewer than the number of TiKV nodes. In test environments, the value can be 1.
177+
> `count` is defaulted to 3. In production environments, the value is usually fewer than the number of TiKV nodes. In test environments, the value can be 1.
178178
179179
{{< copyable "shell-regular" >}}
180180
@@ -194,7 +194,18 @@ If TiFlash replicas consistently fail to be created since the TiDB cluster is de
194194
195195
5. Check whether the remaining disk space percentage on the machine where TiFlash nodes reside is higher than the [`low-space-ratio`](/pd-configuration-file.md#low-space-ratio) value. The default value is 0.8, meaning when a node's used space exceeds 80% of its capacity, PD will avoid migrating Regions to that node to prevent disk space exhaustion. If all TiFlash nodes have insufficient remaining space, PD will stop scheduling new Region peers to TiFlash, causing replicas to remain in an unavailable state (progress < 1).
196196
197-
- If the disk usage reaches or exceeds `low-space-ratio`, it indicates insufficient disk space. In this case, please delete unnecessary files such as the `space_placeholder_file` under the `${data}/flash/` directory. If necessary, after deleting files, you may temporarily set `storage.reserve-space` to `0MB` in the tiflash-learner.toml configuration file to restore TiFlash service.
197+
- If the disk usage reaches or exceeds `low-space-ratio`, it indicates insufficient disk space. In this case, one or more of the following actions can be taken:
198+
199+
- Modify the value of `low-space-ratio` to allow the PD to resume scheduling Regions to the TiFlash node.
200+
201+
```
202+
tiup ctl:nightly pd -u http://${pd-ip}:${pd-port} config set low-space-ratio 0.9
203+
```
204+
205+
- Scale-out new TiFlash nodes, PD will balance Regions across TiFlash nodes and resumes scheduling Regions to TiFlash nodes with enough disk space.
206+
207+
- Remove unnecessary files from the TiFlash node disk, such as the `space_placeholder_file` file in the `${data}/flash/` directory. If necessary, set `storage.reserve-space` in tiflash-learner.toml to `0MB` at the same time to temporarily bring TiFlash back into service.
208+
198209
- If the disk usage is below `low-space-ratio`, it indicates normal disk space availability. Proceed to the next step.
199210
200211
6. Check whether there is any `down peer`. Any `down peer` might cause the replication to get stuck.

0 commit comments

Comments
 (0)