m/n/c/curator: lower leader failover TTL to 10s
This allows us to make some (future) tests faster, and generally sounds
like a good idea to make the cluster more responsive to partitioning
problems.
Change-Id: I086b766584c8b5aeec0de9de53130697ca59d2b0
Reviewed-on: https://review.monogon.dev/c/monogon/+/798
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/node/core/curator/curator.go b/metropolis/node/core/curator/curator.go
index 9ad88a8..400f08c 100644
--- a/metropolis/node/core/curator/curator.go
+++ b/metropolis/node/core/curator/curator.go
@@ -291,7 +291,7 @@
// but allows us to explicitly log the used TTL.
s.ttl = int(s.config.LeaderTTL.Seconds())
if s.ttl <= 0 {
- s.ttl = 60
+ s.ttl = 10
}
supervisor.Logger(ctx).Infof("Curator starting on prefix %q with lease TTL of %d seconds...", electionPrefix, s.ttl)