14. How to make DNS forget broken balancer server
ASAP?!?
15. Make Consul cluster monitor your balancers health
and inform your NS about IPs of health ones
(Yep, Consul can speak in DNS language)
16. DNS
Forward zone
Consul cluster
Ok! Now if one of my balancer down
Consul will return IPs of health ones only
Consul is authoritative for a zone
with my critical services
20. Do you thing that it is the DNS server
that is the Single Point of Failure?
21. ZABBIX!!!
But it does not affect any component of production system directly
Neither customers are affected
As for DNS servers they can be readily deployed in required amount
with resolv.conf updated with new servers IPs
24. HAproxy
/etc/haproxy/haproxy.cfg
frontend elasticsearch
bind *:9200
default_backend elasticsearch
backend elasticsearch
server es01 123.123.123.1:9200 check inter 1000 rise 10 fall 5
server es02 123.123.123.2:9200 check inter 1000 rise 10 fall 5
server es03 123.123.123.3:9200 check inter 1000 rise 10 fall 5
option httpchk GET /_cluster/health
http-check expect ! string "status":"red"
26. Consul looks like as NS from outside
[root@consul01 ~]# dig @consul01 -p 8600 es-lb.service.martyshka +short
185.66.251.35
185.66.251.34
[root@consul01 ~]#