etcd 配置

name: node1

data-dir: "/etcd/data"

#监听URL,用于与其他节点通讯

listen-peer-urls: "http://172.17.217.142:2380" #注意这里是服务器内网ip,通过内网启用的端口服务

list of URLs to listen on for client traffic

listen-client-urls: "http://127.0.0.1:2379,http://172.17.217.142:2379" #注意这里是服务器内网ip

#list of this member's client URLs to advertise to the public

advertise-client-urls: "http://121.43.131.181:2379,http://127.0.0.1:2379" #外网ip,对外暴露的端口

initial-advertise-peer-urls: 'http://121.43.131.181:2380' #外网ip,对外暴露的端口

initial-cluster: node1=http://121.43.131.181:2380,node2=http://121.43.131.84:2380 #外网ip,对外暴露的端口

initial-cluster-token: etcd-cluster

initial-cluster-state: new

相关推荐
初次攀爬者2 天前
ZooKeeper 实现分布式锁的两种方式
分布式·后端·zookeeper
断手当码农3 天前
Redis 实现分布式锁的三种方式
数据库·redis·分布式
初次攀爬者3 天前
Redis分布式锁实现的三种方式-基于setnx,lua脚本和Redisson
redis·分布式·后端
业精于勤_荒于稀3 天前
物流订单系统99.99%可用性全链路容灾体系落地操作手册
分布式
Asher05093 天前
Hadoop核心技术与实战指南
大数据·hadoop·分布式
凉凉的知识库3 天前
Go中的零值与空值,你搞懂了么?
分布式·面试·go
?Anita Zhang3 天前
联邦学习实战:如何在分布式场景下构建隐私保护机器学习模型
人工智能·分布式·机器学习
tony3653 天前
pytorch分布式训练解释
人工智能·pytorch·分布式
2501_933329553 天前
技术深度拆解:Infoseek媒体发布系统的分布式架构与自动化实现
分布式·架构·媒体
weixin_395448913 天前
cursor日志0224
eureka·flink·etcd