17aee4d69c
Clients periodically fingerprint Vault and Consul to ensure the server has updated attributes in the client's fingerprint. If the client can't reach Vault/Consul, the fingerprinter clears the attributes and requires a node update. Although this seems like correct behavior so that we can detect intentional removal of Vault/Consul access, it has two serious failure modes: (1) If a local Consul agent is restarted to pick up configuration changes and the client happens to fingerprint at that moment, the client will update its fingerprint and result in evaluations for all its jobs and all the system jobs in the cluster. (2) If a client loses Vault connectivity, the same thing happens. But the consequences are much worse in the Vault case because Vault is not run as a local agent, so Vault connectivity failures are highly correlated across the entire cluster. A 15 second Vault outage will cause a new `node-update` evalution for every system job on the cluster times the number of nodes, plus one `node-update` evaluation for every non-system job on each node. On large clusters of 1000s of nodes, we've seen this create a large backlog of evaluations. This changeset updates the fingerprinting behavior to keep the last fingerprint if Consul or Vault queries fail. This prevents a storm of evaluations at the cost of requiring a client restart if Consul or Vault is intentionally removed from the client. |
||
---|---|---|
.. | ||
test_fixtures | ||
arch.go | ||
arch_test.go | ||
bridge.go | ||
bridge_default.go | ||
bridge_linux.go | ||
bridge_linux_test.go | ||
cgroup.go | ||
cgroup_default.go | ||
cgroup_linux.go | ||
cgroup_test.go | ||
cni.go | ||
cni_test.go | ||
consul.go | ||
consul_test.go | ||
cpu.go | ||
cpu_default.go | ||
cpu_linux.go | ||
cpu_test.go | ||
env_aws.go | ||
env_aws_cpu.go | ||
env_aws_test.go | ||
env_azure.go | ||
env_azure_test.go | ||
env_digitalocean.go | ||
env_digitalocean_test.go | ||
env_gce.go | ||
env_gce_test.go | ||
fingerprint.go | ||
fingerprint_default.go | ||
fingerprint_linux.go | ||
fingerprint_test.go | ||
host.go | ||
host_test.go | ||
memory.go | ||
memory_test.go | ||
network.go | ||
network_default.go | ||
network_linux.go | ||
network_test.go | ||
network_windows.go | ||
nomad.go | ||
nomad_test.go | ||
signal.go | ||
signal_test.go | ||
storage.go | ||
storage_test.go | ||
storage_unix.go | ||
storage_windows.go | ||
structs.go | ||
vault.go | ||
vault_test.go | ||
zstorage_windows.go |