Skip to content

Commit

Permalink
Merge pull request ceph#5189 from athanatos/wip-recovery-defaults
Browse files Browse the repository at this point in the history
config_opts: turn down default recovery tunables

Reviewed-by: David Zafman <[email protected]>
  • Loading branch information
dzafman committed Jul 23, 2015
2 parents 6159c67 + cd2d7d0 commit 2869a83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions qa/workunits/ceph-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ function test_run_osd() {
run_osd $dir 0 || return 1
local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.0.asok \
config get osd_max_backfills)
test "$backfills" = '{"osd_max_backfills":"10"}' || return 1

run_osd $dir 1 --osd-max-backfills 20 || return 1
local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.1.asok \
Expand Down Expand Up @@ -524,7 +523,6 @@ function test_activate_osd() {
run_osd $dir 0 || return 1
local backfills=$(CEPH_ARGS='' ceph --format=json daemon $dir//ceph-osd.0.asok \
config get osd_max_backfills)
test "$backfills" = '{"osd_max_backfills":"10"}' || return 1

kill_daemons $dir TERM osd || return 1

Expand Down
8 changes: 4 additions & 4 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ OPTION(mds_max_purge_ops_per_pg, OPT_FLOAT, 0.5)
OPTION(osd_compact_leveldb_on_mount, OPT_BOOL, false)

// Maximum number of backfills to or from a single osd
OPTION(osd_max_backfills, OPT_U64, 10)
OPTION(osd_max_backfills, OPT_U64, 1)

// Minimum recovery priority (255 = max, smaller = lower)
OPTION(osd_min_recovery_priority, OPT_INT, 0)
Expand Down Expand Up @@ -629,8 +629,8 @@ OPTION(osd_default_data_pool_replay_window, OPT_INT, 45)
OPTION(osd_preserve_trimmed_log, OPT_BOOL, false)
OPTION(osd_auto_mark_unfound_lost, OPT_BOOL, false)
OPTION(osd_recovery_delay_start, OPT_FLOAT, 0)
OPTION(osd_recovery_max_active, OPT_INT, 15)
OPTION(osd_recovery_max_single_start, OPT_INT, 5)
OPTION(osd_recovery_max_active, OPT_INT, 3)
OPTION(osd_recovery_max_single_start, OPT_INT, 1)
OPTION(osd_recovery_max_chunk, OPT_U64, 8<<20) // max size of push chunk
OPTION(osd_copyfrom_max_chunk, OPT_U64, 8<<20) // max size of a COPYFROM chunk
OPTION(osd_push_per_object_cost, OPT_U64, 1000) // push cost per object
Expand Down Expand Up @@ -733,7 +733,7 @@ OPTION(mon_rocksdb_options, OPT_STR, "")
* 1..63.
*/
OPTION(osd_client_op_priority, OPT_U32, 63)
OPTION(osd_recovery_op_priority, OPT_U32, 10)
OPTION(osd_recovery_op_priority, OPT_U32, 3)

OPTION(osd_snap_trim_priority, OPT_U32, 5)
OPTION(osd_snap_trim_cost, OPT_U32, 1<<20) // set default cost equal to 1MB io
Expand Down

0 comments on commit 2869a83

Please sign in to comment.