Etcd pour RHEL et CentOS

Les services OpenStack peuvent utiliser Etcd, un magasin de clé-valeur distribué fiable pour verrouiller des clés distribuées, stocker des configurations, tracer l’état des services, autres scénarios.

The etcd service runs on the controller node.

Installer et configurer les composants

  1. Installer le package :

    # yum install etcd
    
  1. Edit the /etc/etcd/etcd.conf file and set the ETCD_INITIAL_CLUSTER, ETCD_INITIAL_ADVERTISE_PEER_URLS, ETCD_ADVERTISE_CLIENT_URLS, ETCD_LISTEN_CLIENT_URLS to the management IP address of the controller node to enable access by other nodes via the management network:

    #[Member]
    ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
    ETCD_LISTEN_PEER_URLS="http://10.0.0.11:2380"
    ETCD_LISTEN_CLIENT_URLS="http://10.0.0.11:2379"
    ETCD_NAME="controller"
    #[Clustering]
    ETCD_INITIAL_ADVERTISE_PEER_URLS="http://10.0.0.11:2380"
    ETCD_ADVERTISE_CLIENT_URLS="http://10.0.0.11:2379"
    ETCD_INITIAL_CLUSTER="controller=http://10.0.0.11:2380"
    ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
    ETCD_INITIAL_CLUSTER_STATE="new"
    

Finaliser l’installation

  1. Activer et démarrer le service etcd:

    # systemctl enable etcd
    # systemctl start etcd