[PATCH] Separate CTDB killtcp functionality into standalone helper

Martin Schwenke martin at meltin.net
Thu Mar 31 04:46:22 UTC 2016


The attached patch set moves the TCP connection killing code out of the
CTDB daemon and into a new standalone helper.

This code is used by scripts when an IP address is released and the
server end of connections need to be killed to avoid stale connections
if the IP address is failed back to the same node before the
connections time out.  The scripts also kill the client end of
connections in some cases.  There should be no change in behaviour.

Advantages include:

* Fast - no communication overhead 

* Centralised code

* Can now move LVS support out of daemon

  The daemon-based killtcp code checked that one end of the connection
  was a public address.  There's no need for this given that we control
  the calling code.

  So, LVS support can now just become a couple of scripts.

Please review and maybe push...

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 122392 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160331/de75b461/ctdb.bin>


More information about the samba-technical mailing list