Skip to content

Commit

Permalink
Replace mis-named mon config variables using mon_osd_min_down_reports…
Browse files Browse the repository at this point in the history
…/mon_osd_min_down_reporters

Signed-off-by: David Zafman <[email protected]>
Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
David Zafman authored and Sage Weil committed May 13, 2013
1 parent 9ec77eb commit 88af2b0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
7 changes: 6 additions & 1 deletion PendingReleaseNotes
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@

- The 'osd min down {reporters|reports}' config options have been
renamed to 'mon osd min down {reporters|reports}', and the
documentation has been updated to reflect that these options apply
to the monitors (who process failure reports) and not OSDs. If you
have adjusted these settings, please update your ``ceph.conf''
accordingly.
35 changes: 17 additions & 18 deletions doc/rados/configuration/mon-osd-interaction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ You can change the minimum number of ``osd down`` reports by adding an ``osd min
down reports`` setting under the ``[osd]`` section of your Ceph configuration
file, or by setting the value at runtime. By default, only one OSD is required
to report another OSD down. You can change the number of OSDs required to report
a monitor down by adding an ``osd min down reporters`` setting under the
``[osd]`` section of your Ceph configuration file, or by setting the value at
a monitor down by adding an ``mon osd min down reporters`` setting under the
``[mon]`` section of your Ceph configuration file, or by setting the value at
runtime.


Expand Down Expand Up @@ -271,6 +271,21 @@ Monitor Settings
:Type: 32-bit Integer
:Default: ``900``

``mon osd min down reporters``

:Description: The minimum number of OSDs required to report a ``down`` OSD.
:Type: 32-bit Integer
:Default: ``1``


``mon osd min down reports``

:Description: The minimum number of times an OSD must report that another
is ``down``.

:Type: 32-bit Integer
:Default: ``3``



OSD Settings
Expand Down Expand Up @@ -333,19 +348,3 @@ OSD Settings
:Type: 32-bit Integer
:Default: ``30``


``osd min down reporters``

:Description: The minimum number of OSDs required to report a ``down`` OSD.
:Type: 32-bit Integer
:Default: ``1``


``osd min down reports``

:Description: The minimum number of times an OSD must report that another
is ``down``.

:Type: 32-bit Integer
:Default: ``3``

4 changes: 2 additions & 2 deletions src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ OPTION(mon_sync_debug, OPT_BOOL, false) // enable sync-specific debug
OPTION(mon_sync_debug_leader, OPT_INT, -1) // monitor to be used as the sync leader
OPTION(mon_sync_debug_provider, OPT_INT, -1) // monitor to be used as the sync provider
OPTION(mon_sync_debug_provider_fallback, OPT_INT, -1) // monitor to be used as fallback if sync provider fails
OPTION(mon_osd_min_down_reporters, OPT_INT, 1) // number of OSDs who need to report a down OSD for it to count
OPTION(mon_osd_min_down_reports, OPT_INT, 3) // number of times a down OSD must be reported for it to count

// dump transactions
OPTION(mon_debug_dump_transactions, OPT_BOOL, true)
Expand Down Expand Up @@ -407,8 +409,6 @@ OPTION(osd_mon_heartbeat_interval, OPT_INT, 30) // (seconds) how often to ping
OPTION(osd_mon_report_interval_max, OPT_INT, 120)
OPTION(osd_mon_report_interval_min, OPT_INT, 5) // pg stats, failures, up_thru, boot.
OPTION(osd_mon_ack_timeout, OPT_INT, 30) // time out a mon if it doesn't ack stats
OPTION(osd_min_down_reporters, OPT_INT, 1) // number of OSDs who need to report a down OSD for it to count
OPTION(osd_min_down_reports, OPT_INT, 3) // number of times a down OSD must be reported for it to count
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)
Expand Down
4 changes: 2 additions & 2 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -931,8 +931,8 @@ bool OSDMonitor::check_failure(utime_t now, int target_osd, failure_info_t& fi)
}

if (failed_for >= grace &&
((int)fi.reporters.size() >= g_conf->osd_min_down_reporters) &&
(fi.num_reports >= g_conf->osd_min_down_reports)) {
((int)fi.reporters.size() >= g_conf->mon_osd_min_down_reporters) &&
(fi.num_reports >= g_conf->mon_osd_min_down_reports)) {
dout(1) << " we have enough reports/reporters to mark osd." << target_osd << " down" << dendl;
pending_inc.new_state[target_osd] = CEPH_OSD_UP;

Expand Down

0 comments on commit 88af2b0

Please sign in to comment.