From a21a4e5ac43af0f225b6e56e3e73ea7e570510d9 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 24 May 2013 17:10:55 -0700 Subject: [PATCH] CLOUDSTACK-2682: Sleep 1 second before switch to BACKUP To prevent backup.sh preempt master.sh when keepalived switch to MASTER then back to BACKUP immediately. Since it would take at least 3 seconds for BACKUP to switch to MASTER(vrrp timeout), the fix won't cause chaos when keepalive try to switch to MASTER. --- .../debian/config/root/redundant_router/backup.sh.templ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ b/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ index 7a1bd44584a..32c811b26d4 100644 --- a/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ +++ b/patches/systemvm/debian/config/root/redundant_router/backup.sh.templ @@ -16,6 +16,8 @@ # specific language governing permissions and limitations # under the License. +sleep 1 + source /root/func.sh lock="biglock"