pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37.11k stars 5.83k forks source link

Configure tikv.toml in tidb-ansible or tikv server/conf/tikv.toml? #8996

Closed shenlijungg closed 5 years ago

shenlijungg commented 5 years ago

1 :Configure tikv.toml in tidb-ansible? 需要在中控上新建tikv.toml,操作上直接重启,还是需要 执行? ansible-playbook stop.yml -l kvip ansible-playbook bootstrap.yml -l kvip ansible-playbook deploy.yml -l kvip ansible-playbook start.yml -l kvip

2 :Configure tikv.toml in tikv server/conf/tikv.toml? vi tikv.toml
ansible-playbook stop.yml -l kvip ansible-playbook start.yml -l kvip

liubo0127 commented 5 years ago

If you want to modify the configuration of TiKV, you can modify tidb-ansible/conf/tikv.yml, then execute ansible-playbook rolling_update.yml --tags=tikv

shenlijungg commented 5 years ago

drainer_mysql_drainer.toml ansible-playbook rolling_update.yml --l drainerhost? @liubo0127

liubo0127 commented 5 years ago

The drainer is a single point service, you need to stop the service first, then update the configuration, and finally start the service.If you want to modify the configuration of drainer1(alias in inventory.ini) the steps are as follows:

  1. ansible-playbook stop_drainer.yml -l drainer1
  2. ansible-playbook deploy_drainer.yml -l drainer1
  3. ansible-playbook start_drainer.yml -l drainer1
shenlijungg commented 5 years ago

thanks @liubo127