iRule to use specific member (or node)?

I am trying to put together an iRule that will use a specific node (or member) when the URL contains a specific string. However, I am unable to find much on how to pick a node (or member).

The “pool” command may be used to specify a pool member:

pool myPool member 192.168.1.1 80

You might want to use the “LB::status” command (avail as of v9.2) to validate the availablity of the node first:

LB::status pool myPool member 192.168.1.1 80

pool

Click here

LB::status

Click here

HTH

/deb

You may want to try this as well:

It is from this SOL article

https://tech.f5.com/home/bigipgtm/manuals/bigipgtm9\_2\_2/BIG-IP\_9\_2\_2GTM\_Guide-16-1.html

As an alternative to the pool command, you can also write an iRule that directs traffic to a specific server. To do this, you use the host command. Figure 15.4 shows an example of this command.

when HTTP_REQUEST {

if {[HTTP::uri] starts_with “/foo/” } {

host 10.0.0.20 80

Thanks, Jason.