单实例扩容第二个 TiKV 节点

【 TiDB 集群环境】
集群版本:v5.1.1
TiKV 节点:5 个(分布在不同服务器)

【遇到的问题】
需要在原来的 TiKV 实例需要在扩容一个 TiKV 节点,报以下错误:


Error: check TiKV label failed, please fix that before continue:
192.168.1.24:20160:
        multiple TiKV instances are deployed at the same host but location label missing
192.168.1.24:20161:
        label name 'host' is not specified in pd config (replication.location-labels: [])

【疑问】
原来集群里面的五个 TiKV 节点之前都没有打过标签,如果需要打标签的话是只需要给 192.168.1.24:20160 和 192.168.1.24:20161 这两个节点打相同的标签(tikv-24)就行了吗?还是说其他所有 TiKV 节点都需要重新打标签呢?

建议都打上labels吧

同一个机器上部署多个tikv就需要打标签

好的,主要是怕会影响其他没有打标签的 TIKV 节点的分布,所以想确认下

配置label是个好习惯

你没有使用label做副本规划放置的应该不影响

1、我已经给原来实例 192.168.1.24:20160 打标签了,我再次尝试扩容的时候报错:

Error: check TiKV label failed, please fix that before continue:
192.168.1.24:20160:
        label name 'host' is not specified in pd config (replication.location-labels: [])
192.168.1.24:20161:
        label name 'host' is not specified in pd config (replication.location-labels: [])

2、我根据这篇文章 【SOP 系列 13】TiUP 调整单机单实例集群为单机多实例集群 设置 pd label 的时候又报错:

» config set replication.location-labels "host"
Failed to set config: [400] "cannot to update replication config, the default rules do not consistent with replication config, please update rule instead"

没打标签