Richard_Kim_270
Jan 17, 2007Nimbostratus
Two iRules one Virtual server
Ok so I have a iRule that does the following:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if{ [matchclass [string tolower [HTTP::uri]] starts_with $::Report_strings_matchclass] } {
pool custom_pool
}
else {
pool $default_pool
}
}
this works great but now I have to add another rule where the following strings match exactly then send it to another node otherwise send it to pool custom_pool
/company/SmartImaging/ProcessRequest.aspx?MethodName=UploadImages
/company/SmartImaging/ProcessRequest.aspx?MethodName=SaveImages
Is it more efficient to seperate these as two seperate iRules and bind them to a virtual server or combine these two into on iRule? Would switch globbing be more efficient for the second requirement or should I stick with Data Groups?