Restart worker after becoming primary

This commit is contained in:
Joshua Boniface 2024-08-25 14:18:18 -04:00
parent 4b37c4fea3
commit 7ecc05b413
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ for HOST in ${HOSTS[@]}; do
echo " done."
if [[ -n ${PRIMARY_NODE} && ${PRIMARY_NODE} == ${HOST} ]]; then
echo -n ">>> "
ssh $HOST pvc -q node primary
ssh $HOST pvc -q node primary --wait
ssh $HOST $SUDO systemctl restart pvcworkerd &>/dev/null
fi
done