TayF5un
Jan 15, 2017Nimbostratus
persist profile with irule
Hi,
I have a virtual server and more than 2 pool. I want to use persistence profile based on pool. I have written irule shown below. Are there any mistakes or advice?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/abc*" {
pool abc_pool
persist source_addr
}
"/xyz*" {
pool pool_xyz
persist cookie
}
"/def*" {
pool pool_def
persist dest_addr
}
}
}