ETCD_INITIAL_ADVERTISE_PEER_URLS=http://0.0.0.0:2380 ETCD_INITIAL_CLUSTER_STATE=new ETCD_INITIAL_CLUSTER_TOKEN=etcd-cluster 编写完成后,保存即可。 (2)编写systemctl服务文件(/usr/lib/systemd/system/etcd.service [Unit] Description=etcd key-value store Documentation=https://github.com/etcd-io/etcd ...
initial-cluster: etcd-1=http://xxxxx:2380,etcd-2=http://xxxx:12380,etcd-3=http://xxxxx:22380 initial-cluster-state: new initial-cluster-token: etcd-cluster-1 auto-compaction-mode: periodic auto-compaction-retention: 1h
1、创建 ETCD 配置文件 mkdir-p/etc/etcd cat> /etc/etcd/etcd.conf<<EOF # [Member Flags] # ETCD_ELECTION_TIMEOUT=1000 # ETCD_HEARTBEAT_INTERVAL=100 # 指定etcd的数据目录 ETCD_NAME=etcd1 ETCD_DATA_DIR=/var/lib/etcd/ # [Cluster Flags] # ETCD_AUTO_COMPACTION_RETENTIO:N=0 ETCD_INITIAL_...
ETCD_INITIAL_CLUSTER="node01=http://10.199.250.44:2380,node02=http://10.199.250.101:2380" ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" ETCD_INITIAL_CLUSTER_STATE="new " EOF 2.配置etcd启动文件 cat << EOF | tee /usr/lib/systemd/system/etcd.service [Unit] Description=Etcd Server After=network....
ETCD_INITIAL_CLUSTER_STATE="new" 分别启动etcd systemctl start etcd 查看状态 systemctl status etcd 查看集群 etcdctl member list 查看集群健康状态 etcdctl cluster-health 数据存储在 /var/lib/etcd目录下 五:测试集群 进入任意节点的apisix-dashboard,例如10.199.250.72:9000。新建上游、路由等。再到另外的apisi...
data-dir: /var/lib/etcd1 listen-client-urls: 0.0.0.0:2379 advertise-client-urls: http://xxxx:2379 listen-peer-urls: 0.0.0.0:2380 initial-advertise-peer-urls: 10.7.131.179:2380 initial-cluster: etcd-1= xxxxx:2380,etcd-2= xxxx:12380,etcd-3= xxxxx:22380 initial-...
TCDCTL_API=3 /opt/etcd/bin/etcdctl snapshot restore /home/etcd-0/etcd-snapshot-20231018.db \ --nameapisix-etcd-0--initial-cluster="apisix-etcd-0=http://apisix-etcd-0.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380,apisix-etcd-1=http://apisix-etcd-1.apisix-etcd-headless.ingr...
discovery-proxy:# DNS domain used to bootstrap initial cluster. discovery-srv:# Initial cluster configuration for bootstrapping. initial-cluster:# Initial cluster token for the etcd cluster during bootstrap. initial-cluster-token:'etcd-cluster'# Initial cluster state('new'or'existing'). ...
--name apisix-etcd-0 \ --data-dir="/bitnami/etcd/data" \ --initial-cluster apisix-etcd-0=http://apisix-etcd-0.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380,apisix-etcd-1=http://apisix-etcd-1.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380,apisix-etcd-2=http:/...
节点1 ETCD集群配置: etcd: image: bitnami/etcd:3.4.15 restart: always volumes: - etcd_data:/bitnami/etcd environment: ETCD_NAME: "etcd1" ETCD_ENABLE_V2: "true" ALLOW_NONE_AUTHENTICATION: "yes" ETCD_INITIAL_CLUSTER_STATE: "new" ETCD_ADVERTISE_CLIENT_URLS: "http://12.10.8.92:2379" ...