使用tiup cluster edit-config没办法添加isolation-read.engines

看到官方文档,发现可以在配置文件里加isolation-read.engines来针对tidb-server来设置是否启用TiFlash,但是使用tiup cluster edit-cofig修改配置时,报field isolation-read.engines not found in type spec.TiDBSpe.具体错误信息如下:

tiup is checking updates for component cluster ...
Starting component `cluster`: /root/.tiup/components/cluster/v1.11.1/tiup-cluster edit-config dw-tidb6
New topology could not be saved: Failed to parse topology file: yaml: unmarshal errors:
  line 66: field isolation-read.engines not found in type spec.TiDBSpec
  line 99: field isolation-read.engines not found in type spec.TiDBSpec
Do you want to continue editing? [Y/n]: (default=Y) N
Nothing changed.

怎么改的 发来看看

额,找到问题了,非常可惜,这个参数只能放到全局配置里,没办法针对单个tidb-server设置。

本意是想只修改特定tidb-server的配置,就放到tidb_servers里配置了,但是刚才试了下,发现只能放到server_configs.tidb

哪里看到的啊 :thinking: 我瞅瞅

https://docs.pingcap.com/zh/tidb/dev/tidb-configuration-file#isolation-read

是在这里发现的

能改的:

1 个赞


是我放错地方了,应该再加个config层级 :rofl:

这个不需要写成列表形式么?

测试环境试试, :face_with_thermometer:

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