summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_keepalive.c
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-daemon: Fix signed/unsigned comparisons by declaring as unsignedMartin Schwenke2019-07-051-1/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Add an environment variable to set versionMartin Schwenke2019-03-151-1/+21
| | | | | | | | This can be used to test the version checking logic. Cache the version to avoid re-checking the environment variable each time. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@samba.org>
* ctdb-daemon: Add AllowMixedVersions tunableAmitay Isaacs2017-05-241-0/+10
| | | | | | | | | | This allows to mix CTDB major versions in a single cluster. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed May 24 21:06:28 CEST 2017 on sn-devel-144
* ctdb-daemon: Do not allow mixed ctdb versions in a clusterAmitay Isaacs2017-05-241-0/+57
| | | | | | | | Extend CTDB_REQ_KEEPALIVE packet to include version and uptime. If CTDB versions do not match shutdown ctdb. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-keepalive: Move ctdb_send_keepalive() to ctdb_keepalive.cAmitay Isaacs2017-05-241-0/+27
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-server: Replace ctdb_logging.h with common/logging.hAmitay Isaacs2015-11-161-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-daemon: Separate prototypes for common client/server functionsAmitay Isaacs2015-10-301-0/+2
| | | | | | | | This groups function prototypes for common client/server functions in common/common.h and removes them from ctdb_private.h. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Remove dependency on includes.hAmitay Isaacs2015-10-301-2/+12
| | | | | | | Instead of includes.h, include the required header files explicitly. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Stop using tevent compatibility definitionsAmitay Isaacs2015-10-301-9/+10
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* Remove explicit include of lib/tevent/tevent.h.Amitay Isaacs2012-04-131-1/+0
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 0681014ca5ed2a9b56f63fdace7f894beccf8a9a)
* event: Update events to latest Samba version 0.9.8Rusty Russell2010-08-181-1/+1
| | | | | | | | | | | | | In Samba this is now called "tevent", and while we use the backwards compatibility wrappers they don't offer EVENT_FD_AUTOCLOSE: that is now a separate tevent_fd_set_auto_close() function. This is based on Samba version 7f29f817fa939ef1bbb740584f09e76e2ecd5b06. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (This used to be ctdb commit 85e5e760cc91eb3157d3a88996ce474491646726)
* add a new node state : DELETED.Ronnie Sahlberg2009-06-011-0/+5
| | | | | | | | | | | | | | | | | | | | This is used to mark nodes as being DELETED internally in ctdb so that nodes are not renumbered if / when they are removed from the nodes file. This is used to be able to do "ctdb reloadnodes" at runtime without causing nodes to be renumbered. To do this, instead of deleting a node from the nodes file, just comment it out like 1.0.0.1 #1.0.0.2 1.0.0.3 After removing 1.0.0.2 from the cluster, the remaining nodes retain their pnn's from prior to the deletion, namely 0 and 2 Any line in the nodes file that is commented out represents a DELETED pnn (This used to be ctdb commit 6a5e4fd7fa391206b463bb4e976502f3ac5bd343)
* Keepalive packets were only sent every KeepaliveInterval if the socketRonnie Sahlberg2008-11-201-4/+2
| | | | | | | | | | | | | | | had been completely idle during that interval. If we had been sending other packets such as Messages, Calls or Controls there wouldnt be any need for an explicit keepalive and thus we didnt send one. This does make it somewhat awkward when analyzing traces since it is non-intuitive when keepalives are sent and when they are not sent. Change the keepalive logic to always send a keepalive regardless of whether the link is idle or not. (This used to be ctdb commit 7a18f33ec7512100dd067c65f0470889ff8fd591)
* merge from ronnieAndrew Tridgell2008-02-041-2/+2
| | | | (This used to be ctdb commit e7b57d38cf7255be823a223cf15b7526285b4f1c)
* added debug constants to allow for better mapping to syslog levelsAndrew Tridgell2008-02-041-1/+1
| | | | (This used to be ctdb commit 7ba8f1dde318eab03f4257e5a89fd23e7281e502)
* split node health monitoring and checking for connected/disconnected Ronnie Sahlberg2008-01-151-0/+105
nodes into two separate files. move the monitoring of keepalives for detecting connected/disconnected remote nodes into ctdb_keepalive.c (This used to be ctdb commit 23a57b20c314d5f11a433cf251eb9d9de743849a)