Restart worker after becoming primary
This commit is contained in:
parent
4b37c4fea3
commit
7ecc05b413
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue