DevOps/Etcd

From Wikiversity
Jump to navigation Jump to search

etcd is a distributed key/value store that uses the Raft consensus algorithm to manage a highly-available replicated store, it is used as a software component for software such as CoreOS Container Linux or Kubernetes and for many organizations such as wikipedia[1]

Basic etcd Operation[edit]

Adding a new member to the cluster[edit]

To add a new server called conf1001.example.com to our cluster, using the etcdctl tool:

$ etcdctl -C https://etcd1001.example.com:2379 member add conf1001 http://conf1001.example.com:2380
Added member named conf1001 with ID 5f62a924ac85910 to cluster

ETCD_NAME="conf1001"
# Next line is broken down artificially for ease of reading
ETCD_INITIAL_CLUSTER="conf1001=http://conf1001.example.com:2380,
                      etcd1001=http://etcd1001.example.com:2380,
ETCD_INITIAL_CLUSTER_STATE="existing"

See also[edit]

References[edit]