Forum Discussion
sandiksk_35282
Altostratus
Sep 24, 2015need help with an irule
I have 2 app serves i.e need to talk to the database VIP,load balancing 2 database servers.
How can I create an irule so that
app server 1 --- always talk to database server 1
app server 2--...
sandiksk_35282
Altostratus
Sep 24, 2015doi need specify the port or can I get have the irule as below
when CLIENT_ACCEPTED {
if { [active_members DB_servers_pool] < 2}{ return } elseif { [IP::client_addr] == "1.1.1.1" }{ pool DB_servers_pool member 10.10.10.1 } elseif { [IP::client_addr] == "1.1.1.2" }{ pool DB_servers_pool member 10.10.10.2 }
}
- Hannes_RappSep 24, 2015
Nimbostratus
Yes, specifying the port is optional. By not specifying, the port number will be the same as configured in your database servers pool. If the database servers pool does not have a port specified (port 0), then the port number will be the same as target port of the established clientside connection.
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