diff options
author | Xavier Hernandez <jahernan@redhat.com> | 2018-01-19 12:18:13 +0100 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2019-05-11 14:25:53 +0000 |
commit | 59841f7e1ff0511b04884015441a181a56d07bea (patch) | |
tree | 7b4f16752014cf0cfc0ba1aad1847a43325e28a9 /xlators/cluster/afr/src | |
parent | da4601d536da761ce908a2461a0930857f99f171 (diff) |
rpc: implement reconnect back-off strategy
When a connection failure happens, gluster tries to reconnect every 3
seconds. In some cases the failure is spurious, so a delay of 3 seconds
could be unnecessarily long.
This patch implements a back-off strategy that tries a reconnect as soon
as 1 tenth of a second. If this fails, the time is doubled until it's
around 3 seconds. After that, the reconnect is attempted every 3 seconds
as before.
Change-Id: Icb3fbe20d618f50cbbb599dce542b4e871c22149
Updates: bz#1193929
Signed-off-by: Xavier Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src')
0 files changed, 0 insertions, 0 deletions