Forum Discussion
jdekrnl_118963
Aug 06, 2013Nimbostratus
Yes, we are using cookie as persistence type. I was under the impression that you could only use the pool command within the same virtual server.
Here is the simple iRule that currently does the round robin redirectd:
when RULE_INIT {
set ::lb_counter 1
}
when HTTP_REQUEST {
if { $::lb_counter == 1 } {
HTTP::redirect http://10.1.10.11:8081
set ::lb_counter 2
return
} elseif { $::lb_counter == 2 } {
HTTP::redirect http://10.1.10.12:8082
set ::lb_counter 1
}
}