etcd 集群

2022-01-19 11:12:02 浏览数 (1)

前言

etcd 在生产环境下一般都以集群的形式出现

构建 etcd 集群有以下三种方法

  • Static
  • etcd Discovery
  • DNS Discovery

这里简单分享一下使用静态方法构建 etcd 集群的操作 ,详细过程可以参考 Etcd Clustering Guide

Tip: 当前的最新版本为 etcd v2.2.5 Note: The master branch may be in an unstable or even broken state during development. Please use releases instead of the master branch in order to get stable binaries


概要


环境

代码语言:javascript复制
[root@docker etcd]# hostnamectl 
   Static hostname: docker
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 12a02f8ee88d4b8e91d54d1390b0b275
           Boot ID: 42988a5820ea4d038a3a277920dcfff8
    Virtualization: vmware
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-327.4.4.el7.x86_64
      Architecture: x86-64
[root@docker etcd]# cd etcd-v2.2.4-linux-amd64/
[root@docker etcd-v2.2.4-linux-amd64]# ./etcd --version
etcd Version: 2.2.4
Git SHA: bdee27b
Go Version: go1.5.3
Go OS/Arch: linux/amd64
[root@docker etcd-v2.2.4-linux-amd64]# 

0 人点赞