aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/mon_client.h
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-01-21 10:33:19 -0500
committerIlya Dryomov <idryomov@gmail.com>2016-03-25 13:51:39 -0400
commit168b9090c739c4b5556023a3f08789b349ca7339 (patch)
treea39d7d7d5d11eff31834fb492c719f5520f6cdc4 /include/linux/ceph/mon_client.h
parent58d81b1294f02262a141687cd62529c1ec8e6484 (diff)
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>
Diffstat (limited to 'include/linux/ceph/mon_client.h')
-rw-r--r--include/linux/ceph/mon_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ceph/mon_client.h b/include/linux/ceph/mon_client.h
index 8b2d2f0b659e..e230e7ed60d3 100644
--- a/include/linux/ceph/mon_client.h
+++ b/include/linux/ceph/mon_client.h
@@ -72,6 +72,9 @@ struct ceph_mon_client {
72 unsigned long sub_renew_sent; 72 unsigned long sub_renew_sent;
73 struct ceph_connection con; 73 struct ceph_connection con;
74 74
75 bool had_a_connection;
76 int hunt_mult; /* [1..CEPH_MONC_HUNT_MAX_MULT] */
77
75 /* pending generic requests */ 78 /* pending generic requests */
76 struct rb_root generic_request_tree; 79 struct rb_root generic_request_tree;
77 int num_generic_requests; 80 int num_generic_requests;