Forum Discussion

Nic_Foxton_1199's avatar
Nic_Foxton_1199
Icon for Nimbostratus rankNimbostratus
Mar 17, 2014

Active / Standby server pools

Very new here so please bear with me.

 

We have an application that sits in two datacentres, one has a number of servers which will be active, the other datacentre will be standby. The application requires manual change-over of the service between the datacentres.

 

My plan is to configure virtual servers for each element of the application, with a server pool in datacentre1 and another server pool in datacrentre2. I will then use iControl to substitute the Pool from datacentre2 into the vServers for each part of the application.

 

i.e. Multiple vServers with two Pools and swap over between those pools when necesary. Ideally I would like to trigger this change-over and change-back with a single phrse either in command line or somewhere on the gui.

 

Has anyone any examples of this type of thing?

 

17 Replies

  • Thanks Patrik, if I need to learn scripting to achieve this then I will just have to learn, or find someone who can do it for me.

     

    Admittedly I can write a fault management process to manually enter the tmsh, or gui commands necesary but in designing a new service I would prefer to get it lined up so it has the minimum steps possible in the event that a change-over is required. Even better would be to trigger the script by a single action so it automatically transfers the traffic over to the DR site. We are going to be getting professional services involed anyway, I just thought I could learn a bit more about it in the meantime.

     

  • Noted! I'll fix something. Get back to you later.

     

    What version are you running?

     

    /Patrik

     

  • Thanks Patrik, I really appreciate the help.

     

    We will be running 11.4HF3 on 4480N hardware (single blades in the chassis).

     

    Regards, Nic.

     

  • That's great. I assume that you have admin access? Is the web servers IIS? When you want to fail over, will you want to kill the IIS site too? This can be done via powershell and I can include some sample lines for you.

     

    /Patrik

     

  • As far as I know none are using IIS. Some of the flows are udp only and encrypted with DTLS.

     

    Basically yes, I'd like to clear and reset any existing sessions and force a reconnect. There may be some persistence ... sorry to be vague, even the application designers are vague about their requirements.

     

    I think the simplest approach is just to reset all existing connections, change-over to the DR pool and allow sessions to re-establish. It really is as clunky as that :(

     

  • Hi!

     

    I have finished the script. There's not as much parameter validation as I would like but it works and hopefully it's enough to get you started. :)

     

    You need to install the F5 powershell snap-in before you proceed:

     

    https://devcentral.f5.com/d/microsoft-powershell-with-icontrol

     

    Here is the script:

     

    http://climbi.com/b/HPgL7u

     

    Let me know if something is unclear.

     

    /Patrik