ahmed-ys
Feb 27, 2023Altostratus
F5 LTM
Hi Team I want to ask how can do load balancing for both servers in the following path: https://192.168.10.1:8080/path1/ https://192.168.10.2:8080/path1/ I don't know how can put the path in the...
Thanks Hooni, my problem with load balancing for URL Path
Hi, ahmed-ys
Do you mean that only requests coming to /path1/* should be load-balanced, and any other requests should be denied?
If so, you need an iRule (or a policy) that would enforce it.
You also need an HTTP profile in your virtual server, and if the traffic is encrypted, you need Client and Server SSL profiles.
/Mike
Thanks, Mike maybe my question is not clear, the question is the following, is the path of the server should be put into consideration when we will configure the virtual server? if the path is the same in two backend server
Hi, ahmed-ys
In F5, you have the option of considering the HTTP path to perform load balancing decisions - for instance, URIs matching /path1/* are load-balanced to one pool, URIs matching /path2/* are load-balanced to a different pool. Just google it, and you'll find multiple examples of how to do that using iRules.
But if you need to do it in this scenario, I cannot say. It depends on the needs of the application itself. The best person to answer that question is the application owner/developer. Did they give you any specific instructions regarding HTTP path?
/Mike