Forum Discussion

tommyshocker_93's avatar
tommyshocker_93
Icon for Nimbostratus rankNimbostratus
Apr 27, 2011

Send percentage of traffic to different servers using LTM with GTM add-on

Hi,

 

 

Newb here, so please bear with me. Have an LTM 3600 with the GTM add-on. Is it possible to route a small percentage (10%) of traffic to an internal server and the rest to an external server? The external server is actually a CDN, so a CNAME will have to be used to send traffic to the CDN.

 

 

For example, I want to route 10% of the traffic to internal server 10.1.1.1 (by responding with a DNS A record) and 90% of the traffic to a CDN by responding with CNAME record to example.cdn.net.

 

 

Is this possible?

 

 

Thank you!

 

  • Hi Tommy,

     

     

    You could use an iRule for this like the following:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/ratio_load_balancing_using_rand_function.html

     

     

    Aaron