]> 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)
commit2f5d6bbee0ae1252783862d465da24917cea545f
treea39d7d7d5d11eff31834fb492c719f5520f6cdc4
parentb5f5ef00a0e750566660c93be80370cd7cf98085
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