参数配置优化是修改哪里的配置文件?

我现在想修改performance.txn-total-size-limit 参数为104857600000
我使用下面的方式都会报错,但是我不知道为什么
tiup ctl:v5.0.1 pd -u http://192.168.50.1:2379 config set txn-total-size-limit 104857600000
tiup ctl:v5.0.1 tidb -u http://192.168.50.1:2379 config set performance.txn-total-size-limit 104857600000
tiup ctl:v5.0.1 tidb -u http://192.168.50.1:2379 config set tidb.performance.txn-total-size-limit 104857600000

然后我网上看到了人家用下面这种方式修改配置文件
server_configs:
tidb:
performance.txn-total-size-limit: 1073741824

我就去修改 pd的pd.toml、tidb.toml ,修改完重启那个组件,就启动不起来,也没有启动的日志,自然找不到报错,请问这个参数配置,要怎么改?

1、以编辑模式打开该集群的配置文件

tiup cluster edit-config ${cluster-name}

2、设置参数:

server_configs:
  tidb:
    performance.txn-total-size-limit: 1073741824

3、 执行 reload 命令滚动分发配置、重启相应组件:

tiup cluster reload ${cluster-name} [-N <nodes>] [-R <roles>]

注意:尽量选择业务低峰期或者业务停止时执行reload

具体可以参照这里
https://docs.pingcap.com/zh/tidb/stable/maintain-tidb-using-tiup#修改配置参数

1 个赞

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。