Clone Pool Based On Uri
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.0Published Jan 30, 2015
Version 1.0hoolio
Cirrostratus
VP of Solutions at WorldTech IThoolio
Cirrostratus
VP of Solutions at WorldTech IT2 Comments
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)