iRule HTTP::respond problem
I'm am stuck with this annoying iRule problem.
I'm writing this iRule so testers can check to which pool member they are connected without the need to look in access logs. Also displays the cookies and pool status.
This is useful for ie comparing content on different servers and checking server status. This iRule works perfectly fine on my identical test-vip (in same LB) when I am alone on the vip. But when I add this iRule to the prod. vip with live traffic on, it works ~1 time out of 10 when refreshing the page.
It is this "HTTP::respond 200 content" that's not working correctly when there's traffic. If I rewrite the iRule and only use
HTTP_REQUEST the "HTTP::respond 200 content" works flawlessly but then again I won't get the correct pool member data
since load balancing is not done yet during the request. Would appreciate any advice...
EDIT: Oops format went wrong. Sorry. Uploaded iRule as attachment instead.