Consul add remove node

Материал из noname.com.ua
Версия от 17:57, 20 февраля 2017; Sirmax (обсуждение | вклад) (Новая страница: «=Consul Remove node and add new again= ==Current State== <PRE> # consul members Node Address Status Type Build Protocol DC consul-tf-0…»)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к навигацииПерейти к поиску

Consul Remove node and add new again

Current State

# consul members
Node         Address              Status  Type    Build  Protocol  DC
consul-tf-0  10.206.249.130:8301  alive   server  0.7.4  2         dc1
consul-tf-1  10.206.249.131:8301  alive   server  0.7.4  2         dc1
consul-tf-2  10.206.249.132:8301  alive   server  0.7.4  2         dc1

Remove one node

# consul leave
Graceful leave complete
# consul members
Error connecting to Consul agent: dial tcp 127.0.0.1:8400: getsockopt: connection refused
# consul members
Node         Address              Status  Type    Build  Protocol  DC
consul-tf-0  10.206.249.130:8301  alive   server  0.7.4  2         dc1
consul-tf-1  10.206.249.131:8301  alive   server  0.7.4  2         dc1
consul-tf-2  10.206.249.132:8301  left    server  0.7.4  2         dc1

Create instance

gcloud compute instances create example-instance-1 \
      example-instance-2 example-instance-3 --zone us-central1-a