]> 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>
Tue, 9 Mar 2021 19:46:15 +0000 (16:46 -0300)
commited42a2d7ec2a5e2309f8baa5af0d7ccfd361449c
tree31c60dd3ab5af077d171c3b67988b1bca56d51f3
parent87cd59fd3ebb82c3ebadd5335e99940fbb5394cc
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