etcd cluster setup

export http_proxy=http://109.105.4.17:8119 && https_proxy=http://109.105.4.17:8119

yum install etcd -y

vi /etc/etcd/etcd.conf

 

copy code
# [member]
# node name
ETCD_NAME=node1
# data storage location
ETCD_DATA_DIR= " /var/lib/etcd/default.etcd " #ETCD_WAL_DIR= "" #ETCD_SNAPSHOT_COUNT= " 10000 " #ETCD_HEARTBEAT_INTERVAL= " 100 " #ETCD_ELECTION_TIMEOUT= " 1000 " # Monitor addresses of other Etcd instances ETCD_LISTEN_PEER_URLS= " http:/ /0.0.0.0:2380 " # Listening client address ETCD_LISTEN_CLIENT_URLS= " http://0.0.0.0:2379,http://0.0.0.0:4001 " #ETCD_MAX_SNAPSHOTS= " 5 " #ETCD_MAX_WALS= " 5 " #ETCD_CORS= ""# #[cluster] # Notify other Etcd instance addresses ETCD_INITIAL_ADVERTISE_PEER_URLS= " http://node1:2380 " # if you use different ETCD_NAME (eg test), set ETCD_INITIAL_CLUSTER value for this name, ie " test=http://.. . " # Initialize the node address in the cluster ETCD_INITIAL_CLUSTER= " node1=http://node1:2380,node2=http://node2:2380,etcd2=http://etcd2:2380 " # Initialize the cluster state, new means new ETCD_INITIAL_CLUSTER_STATE = " new " # Initialize cluster token ETCD_INITIAL_CLUSTER_TOKEN= " mritd-etcd-cluster " # Notify client address ETCD_ADVERTISE_CLIENT_URLS= " http://node1:2379,http://node1:4001 "

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324935713&siteId=291194637