Forum Discussion
Big-IP LTM - load balancing incoming request to 2 different 'paths' on Member Pool
Hi chris_wood ,
What I understood , you need to redirect any incoming request ( http://example1 )
to (https://example1/folder/folder/server1) and (https://example1/folder/folder/server2)
at the same time and forward it to two different servers at the same time as well.
Interesting , could you please clarify more , to figure out your request
- chris_woodJun 26, 2023
Nimbostratus
Hi Mohamed,
Thanks for your reply.
Basically, we want to load balance (round robin for e.g) to 2 servers in the member pool - but before passing it on to the servers, we need the Virtual Server to re-write the URL path to a different specific folder on each server:
- if going to server 1 (https://server1/folder/folder/server1)
- if going to server 2(https://server1/folder/folder/server2)
The reading I've done so far suggests when we use the HTTP::redirect iRule, the F5 replies directly to the client and doesn't load balance (even then sending to 2 different locations is a big ask).
In the mean time, we are looking into completing this task using re-directs on the individual servers, as I think that makes more sense.
- Jun 26, 2023
Thanks chris_wood ,
> So you have a pool has two ( servers/pool members )
> and Roundrobin Load balancing technique.
> After selecting server1 for example , modify request from ( http://example ) to (https://server1/folder/folder/server1) and same for Server2 but with server2 path.
That's all ?
Let me try to test it in my lab and reply back to you- chris_woodJun 26, 2023
Nimbostratus
Yes - that's everything!
- CA_ValliJun 26, 2023
MVP
Might be as easy as this:
Not sure if LB::server name returns the correct informationwhen LB_SELECTED { # log local0. "server [LB::server name]" set path "/folder/folder/[LB::server name]" HTTP::host "[LB::server name].local.domain" HTTP::path $path }
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