前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >etcd 集群3

etcd 集群3

作者头像
franket
发布2022-01-19 11:15:49
1950
发布2022-01-19 11:15:49
举报
文章被收录于专栏:技术杂记

确保 23792380 端口被打开,默认情况下

  • 2379 用来监听客户端请求
  • 2380 用来进行节点间通讯

Tip: CentOS Linux 7 中使用的 firewalld 来管理防火墙设置

Note: 其它节点也要确保这两个端口是开放的,否则无法正常工作


配置启动集群

代码语言:javascript
复制
[root@docker etcd-v2.2.4-linux-amd64]# ./etcd -name docker -initial-advertise-peer-urls http://192.168.100.103:2380 \
>   -listen-peer-urls http://192.168.100.103:2380 \
>   -listen-client-urls http://192.168.100.103:2379,http://127.0.0.1:2379 \
>   -advertise-client-urls http://192.168.100.103:2379 \
>   -initial-cluster-token etcd-cluster-test \
>   -initial-cluster docker=http://192.168.100.103:2380,h102=http://192.168.100.102:2380,h104=http://192.168.100.104:2380 \
>   -initial-cluster-state new
2016-02-16 15:35:49.278204 I | etcdmain: etcd Version: 2.2.4
2016-02-16 15:35:49.278496 I | etcdmain: Git SHA: bdee27b
2016-02-16 15:35:49.278504 I | etcdmain: Go Version: go1.5.3
2016-02-16 15:35:49.278510 I | etcdmain: Go OS/Arch: linux/amd64
...
...
...
----------
[root@h104 etcd-v2.2.4-linux-amd64]# ./etcd -name h104 -initial-advertise-peer-urls http://192.168.100.104:2380 \
>   -listen-peer-urls http://192.168.100.104:2380 \
>   -listen-client-urls http://192.168.100.104:2379,http://127.0.0.1:2379 \
>   -advertise-client-urls http://192.168.100.104:2379 \
>   -initial-cluster-token etcd-cluster-test \
>   -initial-cluster docker=http://192.168.100.103:2380,h102=http://192.168.100.102:2380,h104=http://192.168.100.104:2380 \
>   -initial-cluster-state new
2016-02-16 15:36:13.898374 I | etcdmain: etcd Version: 2.2.4
2016-02-16 15:36:13.898513 I | etcdmain: Git SHA: bdee27b
2016-02-16 15:36:13.898522 I | etcdmain: Go Version: go1.5.3
2016-02-16 15:36:13.898530 I | etcdmain: Go OS/Arch: linux/amd64
...
...
...
----------
[root@h102 etcd-v2.2.4-linux-amd64]# ./etcd -name h102 -initial-advertise-peer-urls http://192.168.100.102:2380  -listen-peer-urls http://192.168.100.102:2380  -listen-client-urls http://192.168.100.102:2379,http://127.0.0.1:2379  -advertise-client-urls http://192.168.100.102:2379  -initial-cluster-token etcd-cluster-test  -initial-cluster docker=http://192.168.100.103:2380,h102=http://192.168.100.102:2380,h104=http://192.168.100.104:2380  -initial-cluster-state new
2016-02-16 15:37:38.592028 I | etcdmain: etcd Version: 2.2.4
2016-02-16 15:37:38.592139 I | etcdmain: Git SHA: bdee27b
2016-02-16 15:37:38.592155 I | etcdmain: Go Version: go1.5.3
2016-02-16 15:37:38.592163 I | etcdmain: Go OS/Arch: linux/amd64
...
...
...

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 配置启动集群
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档