feat(node): try to manage scale up and scale down

This commit is contained in:
2025-05-27 15:26:28 +02:00
parent d655d0449f
commit 004cd98224
8 changed files with 71 additions and 41 deletions

View File

@ -19,7 +19,7 @@ getFailOverStatus() {
primaryHost=$(echo ${primaryInfo} | awk -F ' ' '{print $1}')
currentHost=$(hostname -f)
if [[ "${primaryHost}" != "${currentHost}" ]]; then
echo "I'm not the primary, failover finished"
echo "Failover finished"
return 0
else
echo "Failover in progress"