Re: hello, I have two questions about keepalived, can somebody give me a reply?thank you
Ilya Voronin <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <CAB-YuXAKvVepQ7uFZv1=BDLAPgyd_1H_prwuYDWFqGtMrQQoZw@mail.gmail.com> |
1. No, it can't be shorter than 1 second. This is a VRRP protocol limitation. Most enterprise-class VRRP implementation are using a BFD protocol to achieve sub-second fault detection time. I've created proof-of-concept BFD subsystem for keepalived some time ago - https://github.com/ivoronin/keepalived/tree/bfd . Unfortunately it is not well tested and not suitable for production use. 2. Have you checked "notify_master", "notify_backup", etc parameters? On Sat, Aug 8, 2015 at 7:10 AM, [email protected] < [email protected]> wrote: > 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! > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Keepalived-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/keepalived-devel > > ------------------------------------------------------------------------------ _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel