Can the data.pump directory occupying a large space be cleaned directly?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: data.pump目录占据很大空间 可以直接清理么

| username: Ann_ann

[TiDB Usage Environment] Production Environment
[TiDB Version] V3.0.16
[Encountered Issues: Problem Phenomenon and Impact]
Issue 1: The version is relatively low, binlog is enabled, but there is no drainer configured in the configuration file. Checking the drainer status also shows empty, but multiple nodes have pump configured. Is it useful to only configure pump?

Issue 2: I manually stopped the pump, and the current pump status is:

In the data directory:



Can this directory be deleted directly?

| username: 普罗米修斯 | Original post link

Question 1: Enabling binlog and configuring only pump will record the operation logs of TiDB. Without configuring drainer, it will not synchronize incremental data to the downstream cluster.

| username: 普罗米修斯 | Original post link

Question 2: It takes up a lot of space. It is not recommended to manually clean it directly, as deleting it may affect the startup of the drainer. It is recommended to use the configuration file for automatic cleaning: TiDB 配置文件描述 | PingCAP 文档中心

| username: 像风一样的男子 | Original post link

If you don’t use binlog, you can directly scale down the pump.

| username: heiwandou | Original post link

The logs were not synchronized before being cleared, so the connection was lost.

| username: Ann_ann | Original post link

Currently, there is no drainer node.

| username: tidb菜鸟一只 | Original post link

If there are other backups such as BR, this data can be completely cleared.

| username: 小龙虾爱大龙虾 | Original post link

Without the drainer component, the pump component doesn’t make much sense either. Let’s scale down based on the situation and pay attention to the binlog-related configuration of the TiDB instance.

| username: dba远航 | Original post link

Having only the pump component without the drainer component is useless.

| username: TiDBer_小阿飞 | Original post link

Just stop the pump directly, since there is no drainer anyway.

| username: zhanggame1 | Original post link

I think it’s possible to back up the deleted data.