libceph: monc hunt rate is 3s with backoff up to 30s
authorIlya Dryomov <idryomov@gmail.com>
Thu, 21 Jan 2016 15:33:19 +0000 (16:33 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 25 Mar 2016 17:51:39 +0000 (18:51 +0100)
commit168b9090c739c4b5556023a3f08789b349ca7339
treea39d7d7d5d11eff31834fb492c719f5520f6cdc4
parent58d81b1294f02262a141687cd62529c1ec8e6484
libceph: monc hunt rate is 3s with backoff up to 30s

Unless we are in the process of setting up a client (i.e. connecting to
the monitor cluster for the first time), apply a backoff: every time we
want to reopen a session, increase our timeout by a multiple (currently
2); when we complete the connection, reduce that multipler by 50%.

Mirrors ceph.git commit 794c86fd289bd62a35ed14368fa096c46736e9a2.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
include/linux/ceph/libceph.h
include/linux/ceph/mon_client.h
net/ceph/mon_client.c