iRule load balancing redirect with a pool
I'd like to make an iRule that works as load balancing redirect with a pool. This pool works fine when the virtual server without any iRule. But this iRule gets error at line 4 { arra set ...}. This pool has 2 members working fine. Its status is green. The Standard tcp monitor is attached to this pool. Please let me know how solve this. Thanks. when HTTP_REQUEST { incr ::Counter1 if{$::Counter1 > 30000}{set ::Counter1 0} array set AML [active_members -list [LB::server pool] ] set cc [active_members [LB::server pool] ] if{$cc < 1}{ HTTP::respond 404 "All servers are not active." } set index [$::Counter1 % $cc] HTTP::redirect "http://[$AML($index)::IP]" }369Views0likes6CommentsUnable to target another VIP or Pool
below is my setup virtual server: myapp1_443 Service Port: 443 SSL profile: myapp_sslprofile Pool: myapp1_pool_80 members: pool1member1 port 80 pool1member2 port 80 application is hosted on port 80 & 443 as well. certificate used in myapp_sslprofile is bound to website. in this case SSL offloading is working as expected and i am able to access https://myapp1 however requirement is to check if health of myapp1_pool_80 goes down requests should be served by myapp1_pool_443 i have created one more pool myapp1_pool_443 members: pool1member1 port 443 pool1member2 port 443 and attached irule to my virtual server as below. when LB_FAILED { pool myApp1_pool_443 } even tried below when HTTP_Request { if{ [string tolower [LB::status pool myapp1_pool_80]] eq "down" } { pool myapp1_pool_443 } } but none of these working and page is going nowhere but keeps on searching. as an alternate i tried to create new virtual server without and SSL profile and default pool as myapp1_pool_443 tried to redirect request to target this Virtual server but it's not working either. can someone please guide.431Views0likes5Comments