Forum Discussion

Maneesh_72711's avatar
Maneesh_72711
Icon for Cirrostratus rankCirrostratus
Jul 10, 2017

WideIP Pool Member Priority Change And Control

Any Tool available to switch the WideIP Pools ? We frequently switch between DC's and have a requirement to switch the wideip form one DC to other by manipulating the Weights.

 

I came across below awesome tool/app which allows to disable/enable the LTM Pool members, on similar scale anything for GTM please ?

 

https://devcentral.f5.com/codeshare/virtual-server-pool-member-status-and-control

 

  • do you have a sanitized and generic version of your config? Should be pretty simple to generate a quick command line script to swap pools.

     

  • Hi Jason,

     

    CLI tmsh command would only be for a specific WideIP. What I am looking for is a tool/application which can do similar as we have for LTM Pools members enable/disable.

     

    I can give that tool to the Bridge team which can help in switching the DC's in dark hours. F5 engineer does not have to login to the GTM's and do the manual switching task.

     

  • I was suggesting writing a script that would manage all of them, not a single existing command. I haven't done GUI work in some time, especially on windows.

     

  • Jason if I understand that correct the script would amend the respective wide-ip for which I want to amend the pool members. By passing the respective parameters ? Any directions which you can provide on how to's ?

     

  • Yep. Give me a generic configuration of wideIPs and pools/pool members and the business logic and I'll whip some sample code up for you this weekend.

     

  • Thanks Jason,

    Below is the config. So a Wide IP got three pools attached to it and Helpdesk folks help switch the WideIP as per requirement. In case of there is application issue in one DC they failover to other DC, if both are impacted they switch to Outage Pool for outage page.

    WideIP

    wideip {

    name ";

    alias ";

    alias ";

    pool_lbmode ga

    partition "Common"

    pool "xyz_DC1"

    pool "xyz_DC2"

    pool "xyz_OUTAGE"

    }

    Pool Details

    pool {

    name "xyz_DC1"

    ttl 30

    preferred rr

    alternate null

    fallback null

    partition "Common"

    member IP:443

    }

    pool

    {

    name "xyz_DC2"

    ttl 30

    preferred rr

    alternate null

    fallback null

    partition "Common"

    member IP:443

    }

    pool

    {

    name "xyz_OUTAGE"

    ttl 30

    preferred rr

    alternate null

    fallback null

    partition "Common"

    member IP:443

    }

    Virtual Server Config

    vs {

      name            "xyz-443-v-DC1"
    
      address         IP:443 // https
    

    }

      vs 
      {
    
      name            "xyz-443-v-DC2"
    
      address         IP:443 // https
    

    }

    vs {

      name            "xyz-443-v-outage"
    
      address         IP:443 // https
    

    }

    • JimL's avatar
      JimL
      Icon for Nimbostratus rankNimbostratus

      Iv'e been looking for a cli command to change the gtm pool order as well for the same reason.  With the various articles I found I couldn't find one quite right but was finally able to put it together.

      Wide IP is test.com and I want to make gtmpoolmember1 the lower priority so the Wide IP will resolve / fail over to gtmpoolmember2 for our disaster recovery exercise.

      So, just create a line for each of your Wide IPs for your disaster recovery exercise and paste them all into the cli once the exercise begins.  Just change the order to 0 to resolve / fail back to gtmpoolmember1.

      tmsh modify gtm wideip a test.com pools modify {gtmpoolmember1 { order 1 } }