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 Jul 11, 2023
1 parent b1a869a commit e4418cc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ 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 ETCD_DISABLE_PRESTOP is set, we won't dynamically adjust membership. In this case
# we'll return and allow etcd to 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 e4418cc

Please sign in to comment.