Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

虚拟机部署 ETCD 集群 #72

Open
shuaijinchao opened this issue Dec 4, 2022 · 0 comments
Open

虚拟机部署 ETCD 集群 #72

shuaijinchao opened this issue Dec 4, 2022 · 0 comments

Comments

@shuaijinchao
Copy link
Owner

ETCD配置

name: etcd-01
data-dir: /data/etcd01/data
listen-client-urls: http://172.17.239.160:2379,http://127.0.0.1:2379
advertise-client-urls: http://172.17.239.160:2379,http://127.0.0.1:2379
listen-peer-urls: http://172.17.239.160:2380
initial-advertise-peer-urls: http://172.17.239.160:2380
initial-cluster: etcd-01=http://172.17.239.160:2380,etcd-02=http://172.17.239.162:2380,etcd-03=http://172.17.239.161:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new
enable-grpc-gateway: true

name: etcd-02
data-dir: /data/etcd02/data
listen-client-urls: http://172.17.239.162:2379,http://127.0.0.1:2379
advertise-client-urls: http://172.17.239.161:2379,http://127.0.0.1:2379
listen-peer-urls: http://172.17.239.162:2380
initial-advertise-peer-urls: http://172.17.239.162:2380
initial-cluster: etcd-01=http://172.17.239.160:2380,etcd-02=http://172.17.239.162:2380,etcd-03=http://172.17.239.161:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new
enable-grpc-gateway: true

name: etcd-03
data-dir: /data/etcd03/data
listen-client-urls: http://172.17.239.161:2379,http://127.0.0.1:2379
advertise-client-urls: http://172.17.239.161:2379,http://127.0.0.1:2379
listen-peer-urls: http://172.17.239.161:2380
initial-advertise-peer-urls: http://172.17.239.161:2380
initial-cluster: etcd-01=http://172.17.239.160:2380,etcd-02=http://172.17.239.162:2380,etcd-03=http://172.17.239.161:2380
initial-cluster-token: etcd-cluster-token
initial-cluster-state: new
enable-grpc-gateway: true

Supervisor配置

[program:etcd]
command=/usr/local/bin/etcd --config-file=/data/etcd01/config/etcd.yaml
autostart=true
autorestart=true
startsecs=10
startretries=3
stdout_logfile=/data/etcd01/logs/etcd.stdout.log
stderr_logfile=/data/etcd01/logs/etcd.stderr.log
killasgroup=true
stopasgroup=true

[program:etcd]
command=/usr/local/bin/etcd --config-file=/data/etcd02/config/etcd.yaml
autostart=true
autorestart=true
startsecs=10
startretries=3
stdout_logfile=/data/etcd02/logs/etcd.stdout.log
stderr_logfile=/data/etcd02/logs/etcd.stderr.log
killasgroup=true
stopasgroup=true

[program:etcd]
command=/usr/local/bin/etcd --config-file=/data/etcd03/config/etcd.yaml
autostart=true
autorestart=true
startsecs=10
startretries=3
stdout_logfile=/data/etcd03/logs/etcd.stdout.log
stderr_logfile=/data/etcd03/logs/etcd.stderr.log
killasgroup=true
stopasgroup=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant