is there a way to actively terminate tcp sessions on the f5.
i have the following scenario:
2 nodes, each listening on port X
all traffic should be sent to server A as long its listening on port X
server B should only be used when A is not active, and as soon A gets active again all traffic should go to A again.
i have this running, but the problem is that after A gets online again i have a bunch of tcp sessions going to B, and that sessions do nor get migrated to A neither they time out on server B.
I can’t think of another way to handle this without a shell script. Maybe someone else has ideas.
One option might be to use an external monitor which references a shell script. You could poll the pool members and if server B goes down, delete all its connection table entries using a system call to ‘b conn ss server 1.1.1.1:80 delete’ where 1.1.1.1:80 is the IP:port for server B.
Not directly, but you could log a message and then use a custom user_alert.conf to call a shell script. This is described to some extent in SOL9469 for handling a different issue:
SOL9469: A disabled interface is enabled after a reboot or an mcpd process restart