Forum Discussion
balance with 302 to a pool
I see... can you try configuring your pool with least-connections algorithm, add it as default pool to your Virtual Server and then try this iRule on your Virtual Server :
when HTTP_REQUEST {
eval [LB::select]
HTTP::respond 302 Location http://[LB::server addr]:[LB::server port]
}
What this iRule should do is trigger the load balancing algorithm (set to least-connections on your pool) to select a server and then dynamically add the pool member's IP address and port to the 302 redirect sent to the client. Can't say I've seen this done before but I think it should work. You can replace http:// by https:// in the 302 response of course if your servers expect an encrypted connection.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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