Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I apply a web acceleration profile using an irule?

MShain
Nimbostratus
Nimbostratus

I'm having a difficult time finding an example of the syntax used to apply a web acceleration profile using an irule. Here's what I'm trying. This syntax doesn't result in any errors, but I the acceleration profile isn't being applied.

 

when HTTP_REQUEST {

if { [HTTP::host] contains "store.cheetos.com" } {

     set PROFILE::webacceleration "Store_Caching"

     pool CheetoSwarm_7000_pool

   }

}

1 REPLY 1

Read about https://clouddocs.f5.com/api/irules/PROFILE.html as from what I see this returns the selected profile and it is not used to set it up, so I don't think there is such an option for this profile.

 

 

 

 

Try using the irule CACHE command to control when the attached under virtual server web acceleration profile is triggered:

 

 

https://clouddocs.f5.com/api/irules/CACHE.html

 

 

https://support.f5.com/csp/article/K12895

 

 

https://support.f5.com/csp/article/K14903

 

 

 

Edit:

 

 

 

 

If you have licensed the F5 AAM module that also uses the hard disk for extra cache space then you have to use the WAM::disable and WAM::enable commands.

 

 

https://support.f5.com/csp/article/K52245924

 

https://clouddocs.f5.com/api/irules/WAM.html