]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
conf: add options for librados timeouts
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 3 Feb 2014 20:09:34 +0000 (12:09 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 4 Feb 2014 02:57:33 +0000 (18:57 -0800)
These will be implemented in subsequent patches.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/config_opts.h

index 80828c5708beb63ff7956bd597e63366f62ce008..c82120ee78567547be35fc6404e5c0b57f8e1375 100644 (file)
@@ -646,6 +646,9 @@ OPTION(journal_replay_from, OPT_INT, 0)
 OPTION(journal_zero_on_create, OPT_BOOL, false)
 OPTION(journal_ignore_corruption, OPT_BOOL, false) // assume journal is not corrupt
 
+OPTION(rados_mon_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from the monitor before returning an error from a rados operation. 0 means on limit.
+OPTION(rados_osd_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from osds before returning an error from a rados operation. 0 means no limit.
+
 OPTION(rbd_cache, OPT_BOOL, false) // whether to enable caching (writeback unless rbd_cache_max_dirty is 0)
 OPTION(rbd_cache_writethrough_until_flush, OPT_BOOL, false) // whether to make writeback caching writethrough until flush is called, to be sure the user of librbd will send flushs so that writeback is safe
 OPTION(rbd_cache_size, OPT_LONGLONG, 32<<20)         // cache size in bytes