]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: add osd_fast_shutdown_notify_mon option (default false)
authorMauricio Faria de Oliveira <mfo@canonical.com>
Thu, 7 Jan 2021 22:44:44 +0000 (19:44 -0300)
committerMauricio Faria de Oliveira <mfo@canonical.com>
Mon, 22 Mar 2021 14:04:55 +0000 (11:04 -0300)
commitbffe1ad2cc79f337a3c6609828ecc4344c57e9c2
treecc9d922d228df7495e0d2af16dd034bdd8bc07b9
parent224e0301584f0a9e039bb1daa77ff87b085be6bc
osd: add osd_fast_shutdown_notify_mon option (default false)

The osd_fast_shutdown option may cause the cluster log to receive
too many entries of 'osd.X reported immediately failed by osd.Y',
depending on cluster scale.

This might be an issue for LMA stacks/tools that check ceph logs
for failed lines, and then require additional logic to filter on
an intended OSD (fast) shutdown; might not be an option/possible,
and require an admin to analyze.

So, add osd_fast_shutdown_notify_mon option for OSD to also tell
the monitor it is shutting down (done in slow/non-fast shutdown)
under osd_fast_shutdown.

This introduces minimal delay (the ack from the mon is required
to prevent the messages), and addresses the cluster log issue.
Note: the osd_mon_shutdown_timeout option can be used to control
the maximum amount of time waiting for the monitor ack to arrive.

Fixes: http://tracker.ceph.com/issues/46978
Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
(cherry picked from commit c75734729764868c5c501722fc8de08dac9ebd4a)
src/common/legacy_config_opts.h
src/common/options.cc
src/osd/OSD.cc