Skip to content

Commit

Permalink
Allow cluster to start after power off when ETCD_DISABLE_PRESTOP is set
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Klein <bklein@cray.com>
  • Loading branch information
Brad Klein committed Jun 22, 2023
1 parent b1a869a commit 50df39d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,13 @@ etcd_initialize() {
if is_boolean_yes "$ETCD_DISABLE_PRESTOP"; then
info "The member will try to join the cluster by it's own"
export ETCD_INITIAL_CLUSTER_STATE=existing
#
# If we're configured with ETCD_DISABLE_PRESTOP - we aren't
# dynamically adjusting membership. We'll return here in
# this case and let etcd start and join the statically configured
# cluster.
#
return 0
fi
member_id="$(get_member_id)"
if ! is_healthy_etcd_cluster; then
Expand Down

0 comments on commit 50df39d

Please sign in to comment.