Forum Discussion
Blaise_12761
Nimbostratus
Nov 05, 2007Transition from Foundry to LTM loadbalancer
Hello,
I am not sure if this has been addressed in the past, but I am in the process of moving from a Foundry platform to a LTM. One of the key features that I am going to need to implement is what Foundry calls "URL Mapping" or "Layer 7 switching".
I am going to need to be able to send traffic matching a certain pattern to a selected group of servers in the VIP.
A sample entry on the foundry would look like this:
url-map test
method suffix
default 2
match "/test/something/junk123.swf" 1
match "/test/something/junk135.swf" 1
match "/test/something/junk157.swf" 1
match "/test/something/junk246.swf" 1
I would have a virtual server with multiple real servers bound to it. Out of that group I would have 2 servers that would accept this "special" traffic. All other traffic would be balanced across the remaining real servers.
I was told that an irule needs to be created to do this, but I am not familiar with this.
Can someone help explain and maybe include an example that I can modify?
Thanks.
10 Replies
- This can be implemented in several ways.
when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/test/something/junk123.swf" - "/test/something/junk135.swf" - "/test/something/junk157.swf" - "/test/something/junk246.swf" { pool swf_pool } } }
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/test/something/junk123.swf" - "/test/something/junk135.swf" - "/test/something/junk157.swf" - "/test/something/junk246.swf" { pool swf_pool } "*.gif" - "*.jpg" - "*.png" { pool img_pool } } }
- Blaise_12761
Nimbostratus
Thanks, That was quick. I would love to try this, but I do not have my LTM yet. I will give this a shot as soon as I get it and let you know the results. Thanks you so much for your assistance. - Blaise_12761
Nimbostratus
I am finally getting around to testing this irule, but I need to make a modification since I only have one VIP and one pool to play with. - Blaise_12761
Nimbostratus
I tried to apply this irule to a vip that only has one pool called debian64-1. - JRahm
Admin
In your virtual server configuration under the property tab, select http (or one of the other options) for http profile field. - Blaise_12761
Nimbostratus
I am using version 9.4.1. - Blaise_12761
Nimbostratus
I think that I was looking in the wrong field. - JRahm
Admin
I think you are now creating a new virtual server. If you click virtual servers to the left of the "+", then select the virtual server you have already configured, in that properties screen you should see the option to apply the http profile. Please reference the configuration guide for screenshots. - Brian_Herr_1028
Nimbostratus
- JRahm
Admin
If you do get the chance to go to class in Seattle, make a point to introduce yourself to the DevCentral team. Meeting up with Colin & Joe was one of the highlights of my trip...that and calling 9-1-1 for the poor guy who started siezing after getting sucker-punched right outside in the cul-de-sac.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects