cancel
Showing results for 
Search instead for 
Did you mean: 
hooleylist
Cirrostratus
Cirrostratus

Problem this snippet solves:

This iRule will clone a connection to a second pool based on the input URI. In addition to using an iRule to choose what pool of servers a connection is sent to you can also set a clone pool within a rule. This is a simple proof of concept rule for this purpose. In this rule any traffic where the URI begins with "/clone_me" will not only go to the target pool real_pool but also be cloned to the pool clone_pool. Any other URI is only sent to the pool real_pool.

Code :

when HTTP_REQUEST {
  if { [HTTP::uri] starts_with "/clone_me" } {
    pool real_pool
    clone pool clone_pool
  } else {
    pool real_pool
  }
}

Tested this on version:

10.0
Comments
shubhamk
Nimbostratus
Nimbostratus

Is 'clone pool' command clones traffic from client side or the server side ?

 

JRahm
Community Manager
Community Manager

clone pool sends client-side traffic to the additional pool.

 

Version history
Last update:
‎30-Jan-2015 04:22
Updated by:
Contributors