您好,登錄后才能下訂單哦!
?? ? ? pd多套集群部署同一機器的問題
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???--2019-04-25 春雷
多套tidb集群的pd? 部署在同樣的機器,pd的服務相同,導致pd無法啟動
版本:2.1.2
修改相關文件的端口部分解決
/etc/systemd/system
pd.service
【${deploy_dir}/scripts/start_pd.sh】
#!/bin/bash?
set -e
# WARNING: This file was auto-generated. Do not edit!?
# All your edit might be overwritten!?
sudo systemctl start??pd.service
【?${deploy_dir}?/scripts/stop_pd.sh】
#!/bin/bash?
set -e
# WARNING: This file was auto-generated. Do not edit!?
# All your edit might be overwritten!?
sudo systemctl stop??pd.service
tidb中控機:
【1、更改部署的】
/work/tidb/tidb-ansible-2.1/roles/pd/tasks/?systemd_deployment.yml
更改:
service_name: pd-?{{ pd_client_port }}
【2、滾動升級的】
/work/tidb/tidb-ansible-2.1/?rolling_update.yml
更改:
- name: stop PD by systemd?
systemd: name=pd?-{{ pd_client_port }}?.service state=stopped
- name: start PD by systemd?
systemd: name=pd?-{{ pd_client_port }}?.service state=started?
【3、更改start的】
/work/tidb/tidb-ansible-2.1/?start.yml
- name: start PD by systemd?
systemd: name=pd-?{{ pd_client_port }}?.service state=started
手動刪除目標pd機器的:
${deploy_dir}/scripts/start_pd.sh
${?deploy_dir?}?/scripts/stop_pd.sh
${?deploy_dir?}?/scripts/run_pd.sh
中控機重新部署:
ansible-playbook?deploy.yml??-l??pd機器IP
檢查:
start_pd.sh?
#!/bin/bash?
set -e
# WARNING: This file was auto-generated. Do not edit!?
# All your edit might be overwritten!?
sudo systemctl start?pd-10000?.service
stop_pd.sh
#!/bin/bash?
set -e
# WARNING: This file was auto-generated. Do not edit!?
# All your edit might be overwritten!?
sudo systemctl stop?pd-10000?.service
鄭州不孕不育醫院:http://jbk.39.net/yiyuanzaixian/zztjyy/
cd /etc/systemd/system
pd-10000?.service
開啟:
ansible-playbook?start.yml
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。