Forum Discussion
How can I apply a web acceleration profile using an irule?
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
}
}
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com