iRule vs. Local Traffic Policy vs. Rewrite Profile
Rewrite URI and send to specific pool/node.
I have a pool with 6 members which is applied to a virtual server. Our support team would like to have the ability to test against each of the 6 members individual to determine the performance of each member.
VS: app.example.com_443_vs
Pool: app.example.com_443_pool
Nodes: node[x].company.com
Host: https://app.example.com
URI: /myApp
I have decided to publish internally https://app.example.com/n[x]/myApp where x is each of the six members. In the past, I would have written an iRule to rewrite /n[x]/myapp to /myApp and select the pool/node based on /n[x], but now I have Local Traffic Policies and Rewrite Profiles at my disposal.
My question is should I perform the rewrite and pool/node selection in an iRule or is it more efficient to utilize a local traffic policy to perform those functions?