Steve_Knapp
Dec 05, 2012Altostratus
Does LB:status work with event CLIENT:ACCEPTED?
Can't see a reason LB:STATUS is returning 'down'. Does it not work with even CLIENT_ACCEPTED perhaps? I am an iRule newbie to-the-max so if something obvious here I have missed, be kind ;-)
TIA.
+++ Here is the rule snippet:
when CLIENT_ACCEPTED {
if {![class match [IP::client_addr] equals ifb_exceed_qa_g1]} {
if { [LB::status pool ifb_ap_exceed_g1_QA_pool member 10.110.2.83 9082] eq "down" } {
log local0. "10.110.2.83 down - dropping"
log local0. [LB::status pool ifb_ap_exceed_g1_QA_pool member 10.110.2.83 9082]
drop
} else {
log local0. "10.110.2.83 selected"
pool ifb_ap_exceed_g1_QA_pool
}
}
+++ Pool is up
b pool ifb_ap_exceed_g1_QA_pool show
POOL ifb_ap_exceed_g1_QA_pool LB METHOD round robin MIN/CUR ACTIVE MEMBERS 0/1
| (cur, max, limit, tot) = (0, 0, 0, 0)
| (pkts,bits) in = (0, 0), out = (0, 0)
+-> POOL MEMBER ifb_ap_exceed_g1_QA_pool/10.110.2.83:9082 active,up
+++ tail /var/log/ltm
Dec 5 13:55:20 local/tmm info tmm[5106]: Rule ifb_exceed_LB_appservers_qag : 10.110.2.83 down - dropping
Dec 5 13:55:20 local/tmm info tmm[5106]: Rule ifb_exceed_LB_appservers_qag : down