Forum Discussion

Muhammad_Irfan1's avatar
Oct 16, 2014

URI Base load balancing in different pools

I have 8 application servers and i have to load balance the traffic in them in 50 different patterns. One option i had was to make a VS for each pattern, Which means different target for the client.

 

What client want is that they want only 1 VS for load balancing in different pools on the base of URI, like if URI starts with /test then load balance in pool TEST if URI starts with /base then load balance in pool BASE. but only 1 VS.

 

They have two incoming traffic HTTP and HTTPS. So can i entertain both http and https traffic on 1 VS and load balance traffic on the base of URI? or do i need 2 VS 1 for HTTP and 1 for HTTPS.

 

3 Replies

  • Hi,

    you can use something like this irule:

    when HTTP_REQUEST {
    switch -glob [HTTP::uri] {
    "/test*" {
       pool TEST }
    "/base*" {
      pool BASE }
    }
    }
    

    and you will need 2 VS for http and https.

    • Muhammad_Irfan1's avatar
      Muhammad_Irfan1
      Icon for Cirrus rankCirrus
      Thanks bro, This iRule will match the URI in iRule one by one for each request, if there are 50 Pools in one iRule will it slow down the traffic? Is it possible through policy-list and apply that policy to VS?