]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: peers: Peers protocol documentation update.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 26 Mar 2019 15:17:33 +0000 (16:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Mar 2019 15:47:28 +0000 (16:47 +0100)
Add information about new peers protocol heartbeat feature.

doc/peers.txt

index 4187a4eb67a9b120dc7e9457f225985690fc15d4..58df236bb7e3428ddc9c792c91af8dc25a2dd555 100644 (file)
      *** Control message class ***
 
      At this time of writing, control messages are fixed-length messages used
-     only to control the synchonrizations between local and/or remote processes.
+     only to control the synchronizations between local and/or remote processes
+     and to emit heartbeat messages.
 
-     There exist four types of such control messages:
+     There exists five types of such control messages:
 
        +------------+--------------------------------------------------------+
        | type byte  |                   signification                        |
        |      3     | synchronization confirmed: acknowledge a finished or   |
        |            | partial synchronization message.                       |
        +------------+--------------------------------------------------------+
+       |      4     | Heartbeat message.                                     |
+       +------------+--------------------------------------------------------+
 
+     About hearbeat messages: a peer sends heartbeat messages to peers it is
+     connected to after periods of 3s of inactivity (i.e. when there is no
+     stick-table to synchronize for 3s). After a successful peer protocol
+     handshake between two peers, if one of them does not send any other peer
+     protocol messages (i.e. no heartbeat and no stick-table update messages)
+     during a 5s period, it is considered as no more alive by its remote peer
+     which closes the session and then tries to reconnect to the peer which
+     has just disappeared.
 
      *** Error message class ***