集群刚部署的时候没有开启binlog,也没有部署pump,现在想部署

来自 TiDB -13群:

请教一下,集群刚部署的时候没有开启binlog,也没有部署pump,现在想利用tiup把pump部署上,这个该如何操作呀,找了一圈还想没有找到相关的文档

我理解这句话的意思是pump在部署tidb集群的时候一起配置上,现在我的需求是集群已经部署且已经运行了一段时间了但是没有配置pump,现在想把pump给添加上,不知该如何操作,或者有没有相关的部署文档可以参考

1赞

来自 @db_user 的回复:
搜扩容就行,跟扩容其他的一样

来自 @xfworld 的回复:

直接改拓扑,然后扩容就行了

1赞

@hey-hoho 麻烦大佬补充一下~

1赞


New topology could not be saved: immutable field changed: added PumpServers.0.Host with value ‘10.16.145.171’, added PumpServers.0.ssh_port with value ‘22’, added PumpServers.0.Port with value ‘8250’, added PumpServers.0.DeployDir with value ‘/opt/tidb/deploy/pump-8250’, added PumpServers.0.DataDir with value ‘/DATA/tidb/data/pump-8250’, added PumpServers.0.LogDir with value ‘log’, added PumpServers.0.Arch with value ‘amd64’, added PumpServers.0.OS with value ‘linux’, added PumpServers.1.Host with value ‘10.16.145.216’, added PumpServers.1.ssh_port with value ‘22’, added PumpServers.1.Port with value ‘8250’, added PumpServers.1.DeployDir with value ‘/opt/tidb/deploy/pump-8250’, added PumpServers.1.DataDir with value ‘/DATA/tidb/data/pump-8250’, added PumpServers.1.LogDir with value ‘log’, added PumpServers.1.Arch with value ‘amd64’, added PumpServers.1.OS with value ‘linux’, added PumpServers.2.Host with value ‘10.16.145.87’, added PumpServers.2.ssh_port with value ‘22’, added PumpServers.2.Port with value ‘8250’, added PumpServers.2.DeployDir with value ‘/opt/tidb/deploy/pump-8250’, added PumpServers.2.DataDir with value ‘/DATA/tidb/data/pump-8250’, added PumpServers.2.LogDir with value ‘log’, added PumpServers.2.Arch with value ‘amd64’, added PumpServers.2.OS with value ‘linux’, added PumpServers.3.Host with value ‘10.16.145.3’, added PumpServers.3.ssh_port with value ‘22’, added PumpServers.3.Port with value ‘8250’, added PumpServers.3.DeployDir with value ‘/opt/tidb/deploy/pump-8250’, added PumpServers.3.DataDir with value ‘/DATA/tidb/data/pump-8250’, added PumpServers.3.LogDir with value ‘log’, added PumpServers.3.Arch with value ‘amd64’, added PumpServers.3.OS with value ‘linux’

需求追加部署pump,集群配置添加如下:
pump_servers:

  • host: 10.16.145.171
    ssh_port: 22
    port: 8250
    arch: amd64
    os: linux
  • host: 10.16.145.216
    ssh_port: 22
    port: 8250
    arch: amd64
    os: linux
  • host: 10.16.145.87
    ssh_port: 22
    port: 8250
    arch: amd64
    os: linux
  • host: 10.16.145.3
    ssh_port: 22
    port: 8250
    arch: amd64
    os: linux

提示无法保存

1赞

按照以下TiDB Binlog在线启用流程:

  • Tiup cluster scale-out扩容Pump节点
  • Tiup cluster edit-config在线修改集群配置,通过参数binlog.enable参数启用
  • Tiup cluster reload –R tidb重新启动tidb节点
  • Tiup cluster scale-out扩容Drainer节点

pump和drainer扩容配置文件参考文档:https://docs.pingcap.com/zh/tidb/dev/tidb-binlog-deployment-topology

1赞

你红框里面的格式不对,注意缩进问题,yaml对这块比较严

1赞

还有一点是,扩容不是通过edit-config进行的,要新建扩容配置文件,然后使用tiup cluster scale-out命令

已根据提供的流程正确的部署pump完毕

1赞

:+1::+1: