Abstract from ASK F5 iRules
When a local traffic configuration object or behavior is modified by an iRule, changes to that iRule will only apply to new connections. In these situations, existing connections will be subject to the conditions defined in the iRule at the time the connection was first associated with the rule.
Note: iRules modification may have broader affects beyond load balancing configuration options, depending on the complexity of a given iRule. For more information about the ramifications of modifying iRules, refer to DevCentral. A separate DevCentral login is required to access this content; you will be redirected to authenticate or register (if necessary).
In the following example iRule, a load balancing decision is made depending on the URI of the HTTP request:
when HTTP_REQUEST { if { [HTTP::uri] starts_with “/baduri” } { HTTP::respond 200 content { 404 This Page is not available. } } else { pool MyPool1 } }
If the iRule is modified and the destination pool is changed, the connection table will display existing connections established to pool members that are not members of the pool currently referenced by the iRule.
For example, the following excerpted connection table entries demonstrate that two connections are extant on the same virtual server, but only one references a pool and pool member currently defined in the iRule:
Sys::Connections
10.1.1.20:1068 - 10.1.1.2:80 - 10.2.2.4:80
ClientSide ServerSide
Client Addr 10.1.1.20:1068 10.2.2.1:1068 Server Addr 10.1.1.2:80 10.2.2.4:80 Bits In 10.4K 5.3K Bits Out 4.9K 10.4K Packets In 6 4 Packets Out 3 6
10.1.1.20:1069 - 10.1.1.2:80 - 10.2.2.5:80
ClientSide ServerSide Client Addr 10.1.1.20:1069 10.2.2.1:1069 Server Addr 10.1.1.2:80 10.2.2.5:80 Bits In 3.6K 3.0K Bits Out 2.6K 3.7K Packets In 4 3 Packets Out 2 4
Total records returned: 2
I have one question: if oneconnect is enabled in this virutal server,and I changed the destined pool in irule,whether it affect the existing connections Suppose there are keep alive connection between client and F5 LTM