Forum Discussion

andrew_waldvoge's avatar
andrew_waldvoge
Icon for Nimbostratus rankNimbostratus
Aug 18, 2010

GTM Load Balancing between VS and CNAME

We are currently using Global Availability to LB between to Virtual Servers.

 

I need to add a CNAME to a CDN into the mix. Seems this is pretty doable through an iRule.

 

 

The problem with this is that we only use the CDN during peak hours so I need to be able to manually switch between the CNAME and the Virtual Servers. I guess this could be accomplished by adding and removing an iRule that references the CNAME as needed, but I am hoping there is an "easier" way similar to the way the Global Availability algorithm works with Virtual Servers.

 

 

Any suggestions would be appreciated, thanks.

 

2 Replies

  • You could do this in an iRule, just set your peak start/end times, then if { peak times } cname ... else { pool VirtServers }
  • Jason, thanks for the suggestion. Unfortunately, the powers that be have forced me to leave it as a manual step.

     

     

    I've implemented what seems to be the simplest solution by creating a CNAME pool along with the VS pool and, using Global Availability, ordering the pools accordingly.

     

    Originally I just created a simple iRule that I could add and remove,

     

     

    when DNS_REQUEST {

     

    cname "url.example.net"

     

    ttl 300

     

    }

     

     

    but it was just an extra thing to confuse the "operators" doing day to day DNS management.