Forum Discussion
Eray_27463
Mar 07, 2008Nimbostratus
I have an Automated F5 Draining solution that would drain our servers. When I wrote this I assumed there was only 1 F5. But now I've realized in production environment, we would have 2 F5(1 Active and 1 standby).
So I was trying to figure out how should I change my design.
I thought I'll always get both(active and passive) F5 APi's address.
- First figure out which one is active.
- Do all my operations in active F5
- Do a Synch operation
This's going to be my constructor;
public F5API(String loadBalancerAddress1, String loadBalancerAddress2, String userName, String password)
{
F5Interface.initialize(loadBalancerAddress1, userName, password);
if (F5nterface.SystemFailover.get_failover_state() == iControl.SystemFailoverFailoverState.FAILOVER_STATE_STANDBY)
{
F5interface.initialize(loadBalancerAddress2, username, password);
if (F5nterface.SystemFailover.get_failover_state() != iControl.SystemFailoverFailoverState.FAILOVER_STATE_ACTIVE)
{
throw new Exception("No active F5's found");
}
}
}
After I do my operations, how do I synch with StandBy F5?( How do I do it in c??) Or do we have "auto-configsync" right now and I don't have to do anything.
Thanks,
Eray