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.
This commit is contained in:
Sheng Yang 2013-05-24 17:10:55 -07:00
parent e3a3286758
commit a21a4e5ac4
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@
# specific language governing permissions and limitations
# under the License.
sleep 1
source /root/func.sh
lock="biglock"