Forum Discussion
ahmad_2312
Nimbostratus
Mar 01, 2010iRule not applied immediately
HI All;
i noticed that when i modified the iRule content, it will not applied immediately to the virtual servers that it assigned to ,, !! where in each modification to the iRule i add version number to the log
log local0. "ver3"
and i found that in the log, that ver2 still appear within ver3
how to enforce an iRule to be applied immediately ?
- hoolio
Cirrostratus
Hi Ahmad, - spark_86682Historic F5 AccountAaron, that is not correct: existing connections will not have their existing iRules changed.
- hoolio
Cirrostratus
Hi Spark, - spark_86682Historic F5 AccountThere have been a small number of CRs that could cause the wrong iRule to be executed in certain circumstances, so the scenario you describe is plausible. However, the intended behavior is for the same iRules to be executed over the life of a connection.
- ahmad_2312
Nimbostratus
Thanx guys; - spark_86682Historic F5 AccountYes, that does clearly seem to be the reason. I don't think persistence is involved. There is no way to make a new iRule take effect in the middle of a connection.
- hoolio
Cirrostratus
Another option would be to leave the request limit unset and only update the iRule during low traffic periods or a maintenance window. You could then use 'b conn' to clear the connections for the particular VIP to force all clients to re-establish a connection to the VIP and use the new version of the iRule. The downside to this is that you'd drop the connections, but the benefit is that you wouldn't need to restrict the re-use of connections from the proxy or other clients. - kyle_50740
Nimbostratus
I see similar behavior on 10.1 - "b load" works most of the time to correct this behavior (90% of the time). Also, I find updating iRules using the iRule editor works better than through the GUI and find it being applied immediately most of the time. There are occasions when I need to completely remove and re-add the iRule to the virtual server in order for the changes to take effect. - DavidGamba_1834
Nimbostratus
How do you generate a new connection then?
Is there a good workflow to deal with iRule development?
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