[prev in list] [next in list] [prev in thread] [next in thread] 

List:       keepalived-devel
Subject:    Re: [Keepalived-devel] State transitions and notify scripts
From:       Todd Fleisher <todd () fleish ! org>
Date:       2014-08-06 16:53:01
Message-ID: 5627054E-125C-41DF-8037-3AAFA5F37219 () fleish ! org
[Download RAW message or body]

I've had to put sleep timers in some of my transition scripts for this very reason. Bind9's rndc reload for example needing to be run *after* a VIP is present on the box to ensure it is listening on that IP. I like the idea of having pre/post scripts instead of generic scripts.

-T

On Aug 6, 2014, at 9:41 AM, Ryan O'Hara wrote:

> 
> A colleague of mine mentioned that notify scripts, specifically
> notify_backup, is run before the transition is complete. For example,
> the notify_master script is run before the VIP has been added to an
> interface. I'm running some tests now and tracing the code.
> 
> Is this expected behavior? A quick glance at the code caused me to
> wonder if it is just sending a netlink message to add the VIP(s) to an
> interface and then returning. I should know more later today.
> 
> On a related note, I suspect changing this such that the notify_master
> script is run after the VIP is up could break configuration where the
> assumption is that it runs at the start of a state transition. In this
> case, we'd probably need something like "notify_master_post".
> 
> Thoughts?
> 
> Ryan
> 
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Keepalived-devel mailing list
> Keepalived-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Keepalived-devel mailing list
Keepalived-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic