dbffe22465
Nomad reconciles services it expects to be registered in Consul with what is actually registered in the local Consul agent. This is necessary to prevent leaking service registrations if Nomad crashes at certain points (or if there are bugs). When Consul has namespaces enabled, we must iterate over each available namespace to be sure no services were leaked into non-default namespaces. Since this reconciliation happens often, there's no need to require results from the Consul leader server. In large clusters this creates far more load than the "freshness" of the response is worth. Therefore this patch switches the request to AllowStale=true
4 lines
127 B
Plaintext
4 lines
127 B
Plaintext
```release-note:improvement
|
|
consul: Reduce load on Consul leader server by allowing stale results when listing namespaces.
|
|
```
|