大佬目前的问题是这样配置失败了。
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/tidb-new/deploy"
data_dir: "/tidb-new/data"
pd_servers:
- host: node1 # uses /etc/hosts ip address from local machine, which is setup as public ip address
name: pd-node1
config:
client-urls: "http://0.0.0.0:2379"
peer-urls: "http://0.0.0.0:2380"
advertise-client-urls: "http://10.0.0.4:2379" # this is where I am trying to map the gRPC communication with the private ip address
advertise-peer-urls: "http://10.0.0.4:2380" # this is where I am trying to map the gRPC communication with the private ip address
tikv_servers:
- host: node2 # uses /etc/hosts ip address from local machine, which is setup as public ip address
ssh_port: 22
config:
server.addr: "0.0.0.0:20160"
server.advertise-addr: "10.0.0.2:20160" # this is where I am trying to map the gRPC communication with the private ip address
tidb_servers:
- host: node3 # uses /etc/hosts ip address from local machine, which is setup as public ip address
ssh_port: 22
config:
advertise-address: "10.0.0.3"