cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

HTTP Redirection to individual Servers in a Farm

williamsryan
Level 1
Level 1

Hi All,

     I am wondering if there is a method to redirect particular URLs to individual real servers in a server farm.

Scenario:

     We have an url which is setup on our ACE4710s (A3 2.4) to load balancer to a particular server farm as per standard setup i.e.

Customers access http://www.mainwebsite.com on an external VIP, this is then load balanced to a server farm "SF_WEBSITE" consisting of 2 real servers "Server_A" and "Server_B". Nothing difficult in this set up.

     However, I have eeen asked if it is possible to redirect certain urls to individual servers within the server farm "SF_WEBSITE": e.g.

Action 1 - Customers access http://www.mainwebsite.com/area1 is redirected to "Server_A" only

Action 2 - Customers access http://www.mainwebsite.com/area2 is redirected to "Server_B" only

Default Action - Customer access http://www.mainwebsite.com/anything else is redirected to server farm "SF_WEBSITE" and is load balanced between "Server_A" and "Server_B"

The Standard Class Maps and Policy would be something like:

policy-map type loadbalance first-match SLB_WEBSITE

class class-default

  serverfarm SF_WEBSITE

Where I thought I would need something like:

class-map type http loadbalance match-all CMAP_AREA1

description CMAP used to capture specific URL for area 1

2 match http url /area1

class-map type http loadbalance match-all CMAP_AREA2

description CMAP used to capture specific URL for area 2

2 match http url /area2

policy-map type loadbalance first-match SLB_WEBSITE

class CMAP_AREA1

   redirect to "SERVER_A"

class CMAP_AREA2

  redirect to "SERVER_B"

class class-default

  serverfarm SF_WEBSITE

Now I know there is no redirect command or similar under the class option in the Policy map, so the only way I can think of doing this is to set up new server farms consisting of just the single servers for Server A and B i.e.

serverfarm host SF_SERVER_A

rserver SERVER_A

  inservice

serverfarm host SF_SERVER_B

rserver SERVER_B

  inservice

serverfarm host SF_WEBSITE

rserver SERVER_A

   inservice

rserver SERVER_B

  inservice

policy-map type loadbalance first-match SLB_WEBSITE

class CMAP_AREA1

  serverfarm SF_SERVER_A

class CMAP_AREA2

  serverfarm SF_SERVER_B"

class class-default

  serverfarm SF_WEBSITE

Is there an easier way of doing this? I think the above method is ok for 1 instance, but if it test successfully, my company would want to to roll this out across dozens of server farm configurations each consisting of numerous real servers, which will make the administration and implementation time overheads massive, not to mention complicating and lengthening the configuration.

Regards

Ryan

Who Me Too'd this topic