Forum Discussion
Clearing connections on a backup LTM
Is there a way to clear all the connections from a node on the backup LTM?
We have two LTM's set up as a HA pair. For one particular VS we set up connection mirroring and set the max limit on the nodes to 5000 connections. When the VS plays up and eventually recovers, the connection count on the backup LTM still shows a high connection count on the nodes as seen below.
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (8977, 10179, 5000, 153.9M)
| (pkts,bits) in = (0, 0), out = (12, 127256)
| requests (total) = 0
Is there a way to clear the connection count on the backup LTM so it can perform the necessary health check which it does by telnettting to port 8080 and running a http get. It can't do this now because the connection count has exceeded the 5000 connection limit.
Thanks.
Andy
- Chris_MillerAltostratusFirst question - Based on the fact that you're doing an HTTP GET, is this VIP only doing HTTP traffic? If so, any reason you decided to go with connection mirroring?
- hc_andy_35682NimbostratusHi Chris,
The VIP is actually load balancing squid proxy requests on port 8080. We use a health monitor to telnet to port 8080 of the node and do a simple http HEAD query on a particular URL and the heath check succeeds if it gets back a 200 response.
I've tried deleting the connections to the node with "b conn server 210.15.x.x delete" but it still shows a high connection count. To me they just look like stale mirrored connections left over from the Primary LTM when the VIP on there had it's little heart attack.
Before:
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (6415, 7209, 0, 133213)
| (pkts,bits) in = (0, 0), out = (0, 0)
| requests (total) = 0
Run Command:
[root@f5-2-manage:Standby] config b conn server 210.15.x.x delete
After:
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (6443, 7209, 0, 133417)
| (pkts,bits) in = (0, 0), out = (0, 0)
| requests (total) = 0
Any more ideas?
Thanks.
Andy
- hooleylistCirrostratusI think Chris' original question of why you're using connection mirroring on HTTP requests is a good one. HTTP clients are fairly resilient to connection failures. Browsers typically open short lived TCP connections. Even if the connection goes down, the browser will either automatically retry or prompt the user to retry manually. It's generally not worth the overhead to mirror connections for an HTTP virtual server.
- hc_andy_35682NimbostratusTried "b load" - no change to the connection count.
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (6286, 6716, 0, 134390)
| (pkts,bits) in = (0, 0), out = (0, 0)
| requests (total) = 0
[root@f5-2-manage:Standby] config b conn server 210.15.x.x delete
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (6247, 6716, 0, 134859)
| (pkts,bits) in = (0, 0), out = (0, 0)
| requests (total) = 0
[root@f5-2-manage:Standby] config b load
Reading configuration from /config/low_profile_base.conf.
Reading configuration from /defaults/config_base.conf.
Reading configuration from /config/bigip_sys.conf.
Reading configuration from /config/bigip_base.conf.
Reading configuration from /usr/share/monitors/base_monitors.conf.
Reading configuration from /config/profile_base.conf.
Reading configuration from /config/daemon.conf.
Reading configuration from /config/bigip.conf.
Reading configuration from /config/bigip_local.conf.
Loading the configuration ...
[root@f5-2-manage:Standby] config b node 210.15.x.x
NODE 210.15.x.x up session enable
| (cur, max, limit, tot) = (6236, 6716, 5000, 135526)
| (pkts,bits) in = (0, 0), out = (0, 0)
| requests (total) = 0
- hc_andy_35682NimbostratusHi Arron,
- hooleylistCirrostratusNeither HTTP or HTTPS will benefit much from connection mirroring.
- hc_andy_35682NimbostratusSo is there a way to clear these stale mirrored connection on the backup LTM? I've tried the various suggestions above but the connections won't clear. Also note that I have turned off connection mirroring on the primary LTM and sync the config.
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