open-nomad/command/agent/consul
Michael Schurter dbffe22465
consul: allow stale namespace results (#12953)
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
2022-08-26 16:05:12 -07:00
..
acl_testing.go
catalog_testing.go
check_watcher.go
check_watcher_test.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
config_entries_testing.go
connect.go cleanup: consul mesh gateway type need not be pointer 2022-08-13 11:26:58 -05:00
connect_proxies.go
connect_proxies_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
connect_proxies_testing.go
connect_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
group_test.go connect: prefix tag with nomad.; merge into envoy_stats_tags; update docs 2022-04-14 12:52:52 -05:00
int_test.go allocrunner: refactor task coordinator (#14009) 2022-08-22 18:38:49 -04:00
namespaces_client.go consul: allow stale namespace results (#12953) 2022-08-26 16:05:12 -07:00
namespaces_client_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
self.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
self_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
service_client.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
service_client_test.go docs: add docs and tests for tagged_addresses 2022-05-31 13:02:48 -05:00
structs.go
testing.go
unit_test.go connect: prefix tag with nomad.; merge into envoy_stats_tags; update docs 2022-04-14 12:52:52 -05:00
version_checker.go
version_checker_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00