Forum Discussion

Tosin_Omojola's avatar
Tosin_Omojola
Icon for Altostratus rankAltostratus
Jul 03, 2015

REQUEST-BASED LOAD BALANCING USING IRULE

Hi, I don't know if the title is appropriate but, this is the issue I have.

 

I have a mobile application to be load-balanced. However, the nature of the application is such that it connects to the Virtual server on port 80 BUT load balancing is done based on what request is made (from the VS side). Example: a mobile banking application has the following functions; check balance (port 8080), transfer money (port 8090), Pay Bill (port 2020).

 

Each of these services are handled by different application servers running on different ports. The main mobile application connects the VS on port 80. However, the VS needs to direct traffic to the backend servers based on the transaction selected by the client. I know an iRule can handle this but I need help with that.

 

Thank you

 

1 Reply

  • Is it the case that the client submits an HTTP Request, and something in the Request (either a header or something in the body) indicates to which pool the Request should be proxied? If that is the case, then an iRule can definitely do that. If you are running 11.4.0 or higher, and depending on what is being matched, a Local Traffic Policy may also be able to do so:

     

    https://support.f5.com/kb/en-us/solutions/public/15000/000/sol15085.html

     

    On what are you wishing to match?