pd.log (9.2 MB)
member
{
“header”: {
“cluster_id”: 6766052503359926769
},
“members”: [
{
“name”: “pd_tidbpd195”,
“member_id”: 6516220822961258929,
“peer_urls”: [
“http://10.10.48.195:2380”
],
“client_urls”: [
“http://10.10.48.195:2379”
]
},
{
“name”: “pd_tidbpd194”,
“member_id”: 12642193949440828470,
“peer_urls”: [
“http://10.10.48.194:2380”
],
“client_urls”: [
“http://10.10.48.194:2379”
]
},
{
“name”: “pd_tidbpd193”,
“member_id”: 13822200544578743068,
“peer_urls”: [
“http://10.10.48.193:2380”
],
“client_urls”: [
“http://10.10.48.193:2379”
]
}
],
“leader”: {
“name”: “pd_tidbpd194”,
“member_id”: 12642193949440828470,
“peer_urls”: [
“http://10.10.48.194:2380”
],
“client_urls”: [
“http://10.10.48.194:2379”
]
},
“etcd_leader”: {
“name”: “pd_tidbpd194”,
“member_id”: 12642193949440828470,
“peer_urls”: [
“http://10.10.48.194:2380”
],
“client_urls”: [
“http://10.10.48.194:2379”
]
}
}
health
[
{
“name”: “pd_tidbpd195”,
“member_id”: 6516220822961258929,
“client_urls”: [
“http://10.10.48.195:2379”
],
“health”: true
},
{
“name”: “pd_tidbpd194”,
“member_id”: 12642193949440828470,
“client_urls”: [
“http://10.10.48.194:2379”
],
“health”: true
},
{
“name”: “pd_tidbpd193”,
“member_id”: 13822200544578743068,
“client_urls”: [
“http://10.10.48.193:2379”
],
“health”: true
}
]
run_pd.sh
#!/bin/bash
set -e
ulimit -n 1000000
DEPLOY_DIR=/data/tidb/deploy
cd “${DEPLOY_DIR}” || exit 1
exec bin/pd-server
–name=“pd_tidbpd194”
–client-urls=“http://10.10.48.194:2379”
–advertise-client-urls=“http://10.10.48.194:2379”
–peer-urls=“http://10.10.48.194:2380”
–advertise-peer-urls=“http://10.10.48.194:2380”
–data-dir=“/data/tidb/deploy/data.pd”
–initial-cluster=“pd_tidbpd193=http://10.10.48.193:2380,pd_tidbpd194=http://10.10.48.194:2380,pd_tidbpd195=http://10.10.48.195:2380”
–config=conf/pd.toml
–log-file=“/data/tidb/deploy/log/pd.log” 2>> “/data/tidb/deploy/log/pd_stderr.log”