How to simulate the loss of the Consul.

You can simulate the loss of the Consul for one instance closing a connection to the 8500 port via iptables.

For closing port 8500 need to add rule:
iptables -A OUTPUT -p tcp --dport 8500 -j DROP

How to remove the rule.
1. Found rule number:
iptables -L --line-number
2. In the OUTPUT section found our rule, likely this will number 1, and delete it:
iptables -D OUTPUT 1

Комментарии

Популярные сообщения из этого блога

How to work with authentication in Zookeeper?

How-to use cUrl for work with ZKUI.

Consul-template: how to run exec command, if file changed? Create a "watcher" via consul-template.