Forum Discussion
Hartono_Tjung_1
Nimbostratus
Apr 25, 2011Solution for persistence
Hi All,
Currently I have 4 source client (S1, S2, ...S4) and 1 VIP with 4 pool members (lets say D1,D2,..D4). Those pool members is a TCP based server.
Before I go to the pr...
JRahm
Admin
Apr 27, 2011Create four pools, designating one of your servers as priority in each, cascading down respectively:
pool1 pool2 pool3 pool4
1.1.1.1:80 pri 40 1.1.1.2:80 pri 40 1.1.1.3:80 pri 40 1.1.1.4:80 pri 40
1.1.1.2:80 pri 30 1.1.1.3:80 pri 30 1.1.1.4:80 pri 30 1.1.1.1:80 pri 30
1.1.1.3:80 pri 20 1.1.1.4:80 pri 20 1.1.1.1:80 pri 20 1.1.1.2:80 pri 20
1.1.1.4:80 pri 10 1.1.1.1:80 pri 10 1.1.1.2:80 pri 10 1.1.1.3:80 pri 10
Then, it's a simple irule:
when CLIENT_ACCEPTED {
switch [IP::remote_addr] {
"src_ip_S1" { pool pool1 }
"src_ip_S2" { pool pool2 }
"src_ip_S3" { pool pool3 }
"src_ip_S4" { pool pool4 }
default { pool default }
}
}Makes sure your servers will always go to the right member as long as it's up, but will survive outages as well. HTH...Jason
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects