Skip to content

Commit

Permalink
The way we detect presence of peers actually require OrderedReady
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Apr 29, 2020
1 parent c9f2585 commit fabc7e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 10conf-d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ data:
#echo " It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 ."
echo "Or to try a regular start (for example after recovery + manual intervention), run:"
echo " $SUGGEST_EXEC_COMMAND touch /tmp/confirm-resume"
if [ $HOST_ID -eq 0 ] && [ ! -z "$AUTO_RECOVERY_MODE" ]; then
# The !=0 hosts are assumed to start normally, with Parallel pod management policy
if [ ! -z "$AUTO_RECOVERY_MODE" ]; then
echo "The AUTO_RECOVERY_MODE env was set to $AUTO_RECOVERY_MODE, will trigger that choice"
[ $HOST_ID -ne 0 ] && echo "ERROR Shouldn't end up here for pod index > 0 as we assume OrderedReady" && exit 1
touch /tmp/$AUTO_RECOVERY_MODE
else
echo "Waiting for response ..."
Expand Down
2 changes: 1 addition & 1 deletion 50mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
app: mariadb
serviceName: "mariadb"
replicas: 3
podManagementPolicy: Parallel
podManagementPolicy: OrderedReady
template:
metadata:
labels:
Expand Down

0 comments on commit fabc7e8

Please sign in to comment.