Forum Discussion

Thomas_Bennett_'s avatar
Thomas_Bennett_
Icon for Nimbostratus rankNimbostratus
May 23, 2006

Large numbers of http redirects

I have a customer who wants to get the ltm to perform a redirect to a different host and URI based on the URI. This in itself is not a problem.

 

 

However the list the customer has produced for me includes a list of some 822 odd unique URI's and redirect sites.

 

 

My first question is, I'm concerned about the performance impact this is going to have if the customer is expecting the ltm to perform a match on all these sites for each individual GET. So the question is what kind performance impact could we expect and is this the best use of the LTM?

 

 

The second question is the customer has provided me with a spread sheet of the URI's and redirects. My plan was to export the data as a CSV and then read it into an array. I have tired reading in a file using

 

 

set fp [open "somefile" r]

 

set data [read $fp]

 

close $fp

 

 

how ever I get the error command is disabled: "open"]

 

 

Can you tell me if basic file commands are supported?
  • Most of the file commands are disabled according to the list of disabled TCL commands that can be found in the wiki at

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/DisabledTclCommands.html

     

     

    The list doesn't include 'read' though.

     

     

    What you would have to do is use the findclass command and create a DataGroup or class to implement your redirects. check out

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/findclass.html

     

     

    As for performance, you can try the following to time your irules

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/timing.html

     

     

    -Al