[Keepalived-announce] hello, I have two questions about keepalived, can somebody give me a reply?th
Status: Beta
Brought to you by:
acassen
|
From: <zhe...@h3...> - 2015-08-08 04:09:53
|
1、 advert_int 1
Did this must be a integer?When master is down, the time of switching backup to master will be at least a second?Can this time be shorter?
2、vrrp_script chk_http_port {
script "/etc/keepalived/check.sh"
interval 1
weight -10
}
root@ubuntu1:/etc/keepalived# cat check.sh
#!/bin/bash
process_num=`ps aux |grep tgt |grep -v "grep" |wc -l`
if [ $process_num -gt 0 ];then
exit 0
else
service keepalived restart ----> If service tgt is stopped, this will be excuted every one second, what should i do if i want it is excuted once just like "weight -10"
exit 1
fi
-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
|