3e55e79a3f
* k8s doc: update for 0.9.1 and 0.8.0 releases (#10825) * k8s doc: update for 0.9.1 and 0.8.0 releases * Update website/content/docs/platform/k8s/helm/configuration.mdx Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> * Autopilot initial commit * Move autopilot related backend implementations to its own file * Abstract promoter creation * Add nil check for health * Add server state oss no-ops * Config ext stub for oss * Make way for non-voters * s/health/state * s/ReadReplica/NonVoter * Add synopsis and description * Remove struct tags from AutopilotConfig * Use var for config storage path * Handle nin-config when reading * Enable testing autopilot by using inmem cluster * First passing test * Only report the server as known if it is present in raft config * Autopilot defaults to on for all existing and new clusters * Add locking to some functions * Persist initial config * Clarify the command usage doc * Add health metric for each node * Fix audit logging issue * Don't set DisablePerformanceStandby to true in test * Use node id label for health metric * Log updates to autopilot config * Less aggressively consume config loading failures * Return a mutable config * Return early from known servers if raft config is unable to be pulled * Update metrics name * Reduce log level for potentially noisy log * Add knob to disable autopilot * Don't persist if default config is in use * Autopilot: Dead server cleanup (#10857) * Dead server cleanup * Initialize channel in any case * Fix a bunch of tests * Fix panic * Add follower locking in heartbeat tracker * Add LastContactFailureThreshold to config * Add log when marking node as dead * Update follower state locking in heartbeat tracker * Avoid follower states being nil * Pull test to its own file * Add execution status to state response * Optionally enable autopilot in some tests * Updates * Added API function to fetch autopilot configuration * Add test for default autopilot configuration * Configuration tests * Add State API test * Update test * Added TestClusterOptions.PhysicalFactoryConfig * Update locking * Adjust locking in heartbeat tracker * s/last_contact_failure_threshold/left_server_last_contact_threshold * Add disabling autopilot as a core config option * Disable autopilot in some tests * s/left_server_last_contact_threshold/dead_server_last_contact_threshold * Set the lastheartbeat of followers to now when setting up active node * Don't use config defaults from CLI command * Remove config file support * Remove HCL test as well * Persist only supplied config; merge supplied config with default to operate * Use pointer to structs for storing follower information * Test update * Retrieve non voter status from configbucket and set it up when a node comes up * Manage desired suffrage * Consider bucket being created already * Move desired suffrage to its own entry * s/DesiredSuffrageKey/LocalNodeConfigKey * s/witnessSuffrage/recordSuffrage * Fix test compilation * Handle local node config post a snapshot install * Commit to storage first; then record suffrage in fsm * No need of local node config being nili case, post snapshot restore * Reconcile autopilot config when a new leader takes over duty * Grab fsm lock when recording suffrage * s/Suffrage/DesiredSuffrage in FollowerState * Instantiate autopilot only in leader * Default to old ways in more scenarios * Make API gracefully handle 404 * Address some feedback * Make IsDead an atomic.Value * Simplify follower hearbeat tracking * Use uber.atomic * Don't have multiple causes for having autopilot disabled * Don't remove node from follower states if we fail to remove the dead server * Autopilot server removals map (#11019) * Don't remove node from follower states if we fail to remove the dead server * Use map to track dead server removals * Use lock and map * Use delegate lock * Adjust when to remove entry from map * Only hold the lock while accessing map * Fix race * Don't set default min_quorum * Fix test * Ensure follower states is not nil before starting autopilot * Fix race Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com> Co-authored-by: Theron Voran <tvoran@users.noreply.github.com> |
||
---|---|---|
.. | ||
activity | ||
cluster | ||
external_tests | ||
quotas | ||
replication | ||
seal | ||
acl.go | ||
acl_test.go | ||
acl_util.go | ||
activity_log.go | ||
activity_log_test.go | ||
activity_log_testing_util.go | ||
activity_log_util.go | ||
audit.go | ||
audit_broker.go | ||
audit_test.go | ||
audited_headers.go | ||
audited_headers_test.go | ||
auth.go | ||
auth_test.go | ||
barrier.go | ||
barrier_access.go | ||
barrier_aes_gcm.go | ||
barrier_aes_gcm_test.go | ||
barrier_test.go | ||
barrier_view.go | ||
barrier_view_test.go | ||
barrier_view_util.go | ||
capabilities.go | ||
capabilities_test.go | ||
cluster.go | ||
cluster_test.go | ||
core.go | ||
core_metrics.go | ||
core_metrics_test.go | ||
core_test.go | ||
core_util.go | ||
cors.go | ||
counters.go | ||
counters_test.go | ||
deadlock.go | ||
dynamic_system_view.go | ||
dynamic_system_view_test.go | ||
expiration.go | ||
expiration_integ_test.go | ||
expiration_test.go | ||
expiration_util.go | ||
generate_root.go | ||
generate_root_recovery.go | ||
generate_root_test.go | ||
ha.go | ||
ha_test.go | ||
identity_lookup.go | ||
identity_lookup_test.go | ||
identity_store.go | ||
identity_store_aliases.go | ||
identity_store_aliases_test.go | ||
identity_store_entities.go | ||
identity_store_entities_test.go | ||
identity_store_group_aliases.go | ||
identity_store_group_aliases_test.go | ||
identity_store_groups.go | ||
identity_store_groups_test.go | ||
identity_store_oidc.go | ||
identity_store_oidc_test.go | ||
identity_store_oidc_util.go | ||
identity_store_schema.go | ||
identity_store_structs.go | ||
identity_store_test.go | ||
identity_store_upgrade.go | ||
identity_store_util.go | ||
init.go | ||
init_test.go | ||
keyring.go | ||
keyring_test.go | ||
lock.go | ||
logical_cubbyhole.go | ||
logical_cubbyhole_test.go | ||
logical_passthrough.go | ||
logical_passthrough_test.go | ||
logical_raw.go | ||
logical_system.go | ||
logical_system_activity.go | ||
logical_system_helpers.go | ||
logical_system_integ_test.go | ||
logical_system_paths.go | ||
logical_system_pprof.go | ||
logical_system_quotas.go | ||
logical_system_raft.go | ||
logical_system_test.go | ||
logical_system_util.go | ||
mount.go | ||
mount_test.go | ||
mount_util.go | ||
namespaces.go | ||
plugin_catalog.go | ||
plugin_catalog_test.go | ||
plugin_reload.go | ||
policy.go | ||
policy_store.go | ||
policy_store_test.go | ||
policy_store_util.go | ||
policy_test.go | ||
policy_util.go | ||
raft.go | ||
rekey.go | ||
rekey_test.go | ||
request_forwarding.go | ||
request_forwarding_rpc.go | ||
request_forwarding_rpc_util.go | ||
request_forwarding_service.pb.go | ||
request_forwarding_service.proto | ||
request_handling.go | ||
request_handling_test.go | ||
request_handling_util.go | ||
rollback.go | ||
rollback_test.go | ||
router.go | ||
router_access.go | ||
router_test.go | ||
router_testing.go | ||
seal.go | ||
seal_access.go | ||
seal_autoseal.go | ||
seal_autoseal_test.go | ||
seal_test.go | ||
seal_testing.go | ||
seal_testing_util.go | ||
sealunwrapper.go | ||
sealunwrapper_test.go | ||
testing.go | ||
testing_util.go | ||
token_store.go | ||
token_store_test.go | ||
token_store_util.go | ||
ui.go | ||
ui_test.go | ||
util.go | ||
util_test.go | ||
wrapping.go | ||
wrapping_util.go |