Application Delivery (ADX)

Reply
Contributor
Posts: 49
Registered: ‎04-24-2009

How do configure load balancing based on the URL using the ServerIron?

How do configure load balancing based on the URL using the ServerIron?

I would like to have some real server being responsible for images and some others being responsible for all the rest of the traffic. Is this possible using CSW?

Super Contributor
Posts: 316
Registered: ‎05-01-2009

Re: How do configure load balancing based on the URL using the ServerIron?

This is possible using ServerIrons and you have to use CSW to do it.

For simplicity I am assuming you do have two real servers. One for images and another one for the rest of the requests. The one for images is having IP address 192.168.100.101 and the one for the rest of the request is having IP address 192.168.100.102. The virtual server offered to the client is having IP address (the VIP) 192.168.100.233.

A configuration based on CSW policies would look like this:

csw-rule “jpg” url suffix “.jpg”
csw-rule “gif” url suffix “.gif”
csw-rule “bmp” url suffix “.bmp”

csw-policy “MyPolicy”
    match “jpg” forward 1
    match “gif” forward 1
    match “bmp” forward 1

   default forward 2

server real Images 192.168.100.101

port 80

port 80 url "HEAD /"
  port 80 group-id 1 1

server real Other 192.168.100.102

  port 80

  port 80 url "HEAD /"
  port 80 group-id 2 2

server virtual virtServer 192.168.100.233
  port 80

  port 80 csw-policy “MyPolicy”

  port 80 csw

   bind 80 Salami 80 Ham 80

Everything which is matching .jpg, .bmp and .gif is getting forwarded to the real server part of group 1 (group-id 1 1) - the rest (default action) is getting forwarded to the real server being part of group 2 (group-id 2 2).

You can add additional real servers using the the template above.

My 0.2 cents.

Super Contributor
Posts: 316
Registered: ‎05-01-2009

Re: How do configure load balancing based on the URL using the ServerIron?

One more - could be useful:

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook