Forum Discussion
nitass
Jun 11, 2011Employee
it seems to be okay to me.
[root@orchid:Active] config b virtual bar list
virtual bar {
snat automap
pool foo1
destination 172.28.17.88:http
ip protocol tcp
rules myrule
persist source_addr
}
[root@orchid:Active] config b rule myrule list
rule myrule {
when LB_FAILED {
persist none
LB::reselect pool foo2
}
}
[root@orchid:Active] config b pool list
pool foo1 {
members 10.10.70.110:http {
limit 1
}
}
pool foo2 {
members 65.55.17.26:http {}
}
curl -I http://172.28.17.88/ <<<<< 1st request got response from foo1
HTTP/1.1 200 OK
Date: Fri, 10 Jun 2011 19:50:30 GMT
Server: Apache/2.0.59 (rPath)
Last-Modified: Sun, 24 Oct 2010 20:57:08 GMT
ETag: "65c0-123-1e67b100"
Accept-Ranges: bytes
Content-Length: 291
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
curl -I http://172.28.17.88/ <<<<< 2nd request got response from foo2
HTTP/1.1 200 OK
Date: Sat, 11 Jun 2011 04:56:09 GMT
Server: Microsoft-IIS/6.0
P3P:CP="BUS CUR CONo FIN IVDo ONL OUR PHY SAMo TELo"
S: CO1MPPRENA19
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Pragma: no-cache
Set-Cookie: MC1=V=3&GUID=743c5453cf264ce69fc7072de5853936; domain=.17.88; expire s=Mon, 04-Oct-2021 19:00:00 GMT; path=/
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 6293
curl -I http://172.28.17.88/ <<<<< 3rd request got response from foo1
HTTP/1.1 200 OK
Date: Fri, 10 Jun 2011 19:50:39 GMT
Server: Apache/2.0.59 (rPath)
Last-Modified: Sun, 24 Oct 2010 20:57:08 GMT
ETag: "65c0-123-1e67b100"
Accept-Ranges: bytes
Content-Length: 291
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
there is no foo2 in persistence table.
[root@orchid:Active] config b persist show all
PERSISTENT CONNECTIONS
| Mode source addr Value 172.28.17.80
| virtual 172.28.17.88:http node 10.10.70.110:http age 53sec
| Mode source addr Value 192.168.206.96
| virtual 172.28.17.88:http node 10.10.70.110:http age 1sec