cluster/services/consul: only require 3 nodes to bootstrap

This commit is contained in:
Max Headroom 2024-11-16 02:02:46 +01:00
parent 7e2f7e3fde
commit 059e76d959

View file

@ -25,7 +25,7 @@ in
bind_addr = hl.ipv4; bind_addr = hl.ipv4;
ports.serf_lan = hl.port; ports.serf_lan = hl.port;
retry_join = map (hostName: hostLinks.${hostName}.consul.tuple) (cfg.otherNodes.agent hostName); retry_join = map (hostName: hostLinks.${hostName}.consul.tuple) (cfg.otherNodes.agent hostName);
bootstrap_expect = builtins.length cfg.nodes.agent; bootstrap_expect = 3;
addresses.http = config.links.consulAgent.ipv4; addresses.http = config.links.consulAgent.ipv4;
ports.http = config.links.consulAgent.port; ports.http = config.links.consulAgent.port;
}; };