]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit350b14274f2bb6b993bd9d96a2919faaa2df6427
treea39d7d7d5d11eff31834fb492c719f5520f6cdc4
parent81d665d398463af383d256c02325c1d230a2cf2f
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