uni
Nov 03, 2006Altostratus
Different actions for different monitors, one pool
I have been asked if I can perform different actions depending on the result of different monitors. Specifically, if an ICMP monitor fails, reject the request, but if ICMP passes but an HTTP monitor fails, issue an HTTP::respond.
My first thought was to have a pool with the HTTP monitor, and a LB_FAILED event which LB::reselects an equivalent pool with the ICMP monitor, which either rejects or HTTP::responds. It might work, but it seems complicated.
Does anyone have a better suggestion? I have a suspicion I'm asking a dumb question, but my excuse is it's Friday afternoon.