tikv follower read设置失败

【 TiDB 使用环境】测试环境
【 TiDB 版本】

tiup  cluster display xxx

Cluster type:       tidb
Cluster version:    v7.5.0
Deploy user:        tikv
SSH type:           builtin
TLS encryption:     enabled
...

【遇到的问题:问题现象及影响】
在测试环境中尝试mysql中设置follower read参数,设置之后好像没有反应

mysql> show config where name='tidb_replica_read';
Empty set, 1 warning (0.02 sec)

mysql> 
mysql> 
mysql> set config tikv  tidb_replica_read="leader-and-follower";
Query OK, 0 rows affected, 4 warnings (0.02 sec)

mysql> 
mysql> show config where name='tidb_replica_read';
Empty set, 1 warning (0.01 sec)

【其他】
这里没有使用tidb,是部署了tikv, 因此想尝试对tik做参数调整,发现好像没有生效

解决了,这个是要使用tiup cluster edit-config xxx

然后将配置放在

server_configs:
  tidb: {}
    tidb_replica_read: leader-and-follower

接着reload集群即可

1 个赞

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