diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-02-26 18:32:31 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-03-04 14:26:35 -0500 |
commit | 422d2cb8f9afadba1ecd3614f658b6daaaa480fb (patch) | |
tree | 22e1a61acdbbe1459b190c4dbb6019360464b2e9 /fs/ceph/super.h | |
parent | e9964c102312967a4bc1fd501cb628c4a3b19034 (diff) |
ceph: reset osd after relevant messages timed out
This simplifies the process of timing out messages. We
keep lru of current messages that are in flight. If a
timeout has passed, we reset the osd connection, so that
messages will be retransmitted. This is a failsafe in case
we hit some sort of problem sending out message to the OSD.
Normally, we'll get notification via an updated osdmap if
there are problems.
If a request is older than the keepalive timeout, send a
keepalive to ensure we detect any breaks in the TCP connection.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r-- | fs/ceph/super.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h index 6a778f2c3f6e..02c0ddcf3eaf 100644 --- a/fs/ceph/super.h +++ b/fs/ceph/super.h | |||
@@ -62,6 +62,7 @@ struct ceph_mount_args { | |||
62 | int max_readdir; /* max readdir size */ | 62 | int max_readdir; /* max readdir size */ |
63 | int congestion_kb; /* max readdir size */ | 63 | int congestion_kb; /* max readdir size */ |
64 | int osd_timeout; | 64 | int osd_timeout; |
65 | int osd_keepalive_timeout; | ||
65 | char *snapdir_name; /* default ".snap" */ | 66 | char *snapdir_name; /* default ".snap" */ |
66 | char *name; | 67 | char *name; |
67 | char *secret; | 68 | char *secret; |
@@ -72,6 +73,8 @@ struct ceph_mount_args { | |||
72 | * defaults | 73 | * defaults |
73 | */ | 74 | */ |
74 | #define CEPH_MOUNT_TIMEOUT_DEFAULT 60 | 75 | #define CEPH_MOUNT_TIMEOUT_DEFAULT 60 |
76 | #define CEPH_OSD_TIMEOUT_DEFAULT 60 /* seconds */ | ||
77 | #define CEPH_OSD_KEEPALIVE_DEFAULT 5 | ||
75 | #define CEPH_OSD_IDLE_TTL_DEFAULT 60 | 78 | #define CEPH_OSD_IDLE_TTL_DEFAULT 60 |
76 | #define CEPH_MOUNT_RSIZE_DEFAULT (512*1024) /* readahead */ | 79 | #define CEPH_MOUNT_RSIZE_DEFAULT (512*1024) /* readahead */ |
77 | 80 | ||