Forum Discussion
jrok_47156
Nimbostratus
Dec 03, 2012pool down redirect problem
...this is my init rule, it has some globals used in the later irule
when RULE_INIT {
sets number of seconds to wait before a maintenance retry
set ::wwwqawait 10
...
nitass
Employee
Dec 04, 2012The second one checks for the uri of /maintenance and then calls an "event disable all".i understand event disable will prevent this irule being triggered by subsequence request in this connection such as image inside html file.
without event disable
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules {
rule1
rule2
}
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule rule1 list
rule rule1 {
when HTTP_REQUEST priority 10 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config b rule rule2 list
rule rule2 {
when HTTP_REQUEST priority 20 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule1 : /
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule2 : /
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule1 : /f5.gif
Dec 5 00:59:16 local/tmm info tmm[7926]: Rule rule2 : /f5.gif
with event disable
[root@ve10:Active] config b rule rule1 list
rule rule1 {
when HTTP_REQUEST priority 10 {
log local0. [HTTP::uri]
event disable all
}
}
[root@ve10:Active] config b rule rule2 list
rule rule2 {
when HTTP_REQUEST priority 20 {
log local0. [HTTP::uri]
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Dec 5 01:00:42 local/tmm info tmm[7926]: Rule rule1 : /
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects