Forum Discussion

KJ_50941's avatar
KJ_50941
Icon for Nimbostratus rankNimbostratus
Mar 26, 2013

irule pool member selection

how can I do this? currently I have a POOL with two member let's say host_1 and host_2. there is a F5 request to round robin between both hosts 1_2 if we see"/test if anything else redirect only to host_2.

 

I was thinking to create another pool with only host_2 assign to it ( test_Pool) . and use below iRule:

 

 

when HTTP_REQUEST {

 

if { [HTTP::uri] contains "/test" } {

 

pool test_8000_Pool

 

} else {

 

pool test_Pool

 

}

 

}

 

 

wil that work?

 

Thx