summaryrefslogtreecommitdiff
path: root/src/common/config_opts.h
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2012-04-29 15:27:51 -0700
committerSage Weil <sage.weil@dreamhost.com>2012-04-29 15:27:51 -0700
commit2039a76c9f71173bb918275414e15d0aeca0edc5 (patch)
treee98cb23212d24f582b0f64246d955eda343f1add /src/common/config_opts.h
parentd64e1b974023e06b8d96d2c620510697f0f4957f (diff)
downloadceph-historic/past-intervals-hack.tar.gz
osd: kludge to efficiently rebuild past_intervals in parallel on startuphistoric/past-intervals-hack
Particularly tortured clusters might be buried under thousands of osdmap epochs of thrashing with thousands of pgs. Rebuilding the past_intervals becomes O(n^2) in that case, and can take days and days. Instead, do the rebuild for all PGs in parallel during a single pass over the osdmap history. This is an ugly (mostly) one-time use hack that can removed soon. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/common/config_opts.h')
-rw-r--r--src/common/config_opts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/config_opts.h b/src/common/config_opts.h
index ae177a1e1a1..322e0d2f6ae 100644
--- a/src/common/config_opts.h
+++ b/src/common/config_opts.h
@@ -319,6 +319,7 @@ OPTION(osd_kill_backfill_at, OPT_INT, 0)
OPTION(osd_min_pg_log_entries, OPT_U32, 1000) // number of entries to keep in the pg log when trimming it
OPTION(osd_op_complaint_time, OPT_FLOAT, 30) // how many seconds old makes an op complaint-worthy
OPTION(osd_command_max_records, OPT_INT, 256)
+OPTION(osd_hack_parallel_past_intervals, OPT_BOOL, false)
OPTION(filestore, OPT_BOOL, false)
OPTION(filestore_debug_omap_check, OPT_BOOL, 0) // Expensive debugging check on sync
// Use omap for xattrs for attrs over