Forum Discussion
arch_184454
Oct 07, 2015Nimbostratus
Hi Nathan, Sorry for the delayed response. I now have an irule to divert traffic to two servers, and it is working as round robin, and want to get some help to modify this rule so if one node is down the traffic flows to another... I am hoping that someone can provide guidance on how to achieve it.
when RULE_INIT { set ::whichone 0 } when HTTP_REQUEST { switch $::whichone { 0 { HTTP::redirect "" } 1 { HTTP::redirect "" } } set ::whichone [expr ! $::whichone] }