Forum Discussion
5 Replies
- P_KAltostratus
Based on what condition you want to send traffic to different pools?
- raunak_337416Nimbostratus
Hi PK
Thanks for your response.
I have to send the traffic based on the back-end ports (8080 and 7777) , also secondly based on the URI.
- P_KAltostratus
can you explain how the requests comes in and flow works?
- raunak_337416Nimbostratus
Actually to save public IP as a VIP, the solution was designed like this where we have to use 1 vip to cater multiple pools based on different URI's.
For eg: Considering below setup:: if there is a uri and (where index is the main content for the web page hosted on one set of pool members on port 8080 and reports are the files catered from other pool member on port 7777).
So basically when request comes for report the LTM must send that traffic to 2nd Pool and if the request comes in for the main web page LTM sends that traffic to 1st Pool.
- P_KAltostratus
Thanks for clarification and diagram. if i understood properly, you need to create 2 pools
Pool_1 -> 1.1.1.1:8080 and 1.1.1.2:8080 Pool_2 -> 3.3.3.1:777 and 3.3.3.2:7777Apply below iRule to your VIP and test.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
{ pool Pool_1 }"/index*"
{ pool Pool_2 } } }"/reports*"