Forum Discussion

Chris_Phillips's avatar
Chris_Phillips
Icon for Nimbostratus rankNimbostratus
Jun 01, 2012

Sharing or separating classes & rules between virtual services

hi,

 

 

I've a rule which is used to rate limit requests to specific URIs. It does a class match against a class and goes on from there. If there are two independent virtual services running two different web services, would there be something similar to best practices which would say whether to create two near identical copies of the iRule and two different class lists and operate them independently, or to just use the same rule, and put both sets of URIs in the same list.

 

 

 

If we're looking at 3 or 4 entries per site, what's the likely performance hit when doing a class match on 3 lines or 8? When this is compared against simplicity of code, and easier version control, I feel inclined to just let them be combined.

 

2 Replies

  • I don't think combining the two sets of class lists into one will save much on performance.

     

     

    I'd say this comes down to access control and auditing. Do you want to have the objects isolated for different services and/or administrators?

     

     

    Aaron
  • Not at present no. I'm not expecting a performance increase by combining, if anything I'd expect a hit as the class lists would be longer.

     

     

    combining config = less config = more manageability, and I would see this as the main benefit.