步骤:tiup安装完tidb,没有开启binlog,启动tiup正常
后期需要扩容binlog组件
[tidb@localhost ~]$ cat scale-out.yaml
global:
user: “tidb”
ssh_port: 22
deploy_dir: “/data/tidb-deploy”
data_dir: “/data/tidb-data”
pump_servers:
- host: ip1
- host: ip2
tiup cluster scale-out tidb-cluster scale-out.yaml --user tidb -i /home/tidb/.ssh/id_rsa
正常没有报错,
tiup cluster edit-config tidb-cluster
server_configs:
pd:
replicatino.enable-placement-rules: true
tidb:
binlog.enable: true
binlog.ignore-error: true
加载修改的配置文件:
tiup cluster reload tidb-cluster
结果:
MySQL [(none)]> show variables like ‘%log_bin%’;
±--------------------------------±------+
| Variable_name | Value |
±--------------------------------±------+
| log_bin | 0 |
MySQL [(none)]> show pump status;
±-------------------±-------------------±-------±-------------------±--------------------+
| NodeID | Address | State | Max_Commit_Ts | Update_Time |
±-------------------±-------------------±-------±-------------------±--------------------+
| xxxx:8250 | xxxx:8250 | online | 420173039148728323 | 2020-10-16 15:22:24 |
| xxxx:8250 | xxxx:8250 | online | 420173039070085121 | 2020-10-16 15:22:24 |
±-------------------±-------------------±-------±-------------------±--------------------+