]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: add osd_hack_prune_past_intervals 17351/head
authorSage Weil <sage@redhat.com>
Thu, 24 Nov 2016 23:08:49 +0000 (18:08 -0500)
committerSage Weil <sage@redhat.com>
Wed, 30 Aug 2017 13:31:53 +0000 (09:31 -0400)
commitd0492ea07abcc8652f9c713deaae792ef68dc491
tree457029c172e43c6aea5654548500f78402033ab5
parent88126f86bf240db8bd4573832a75709a8ae8ddba
osd: add osd_hack_prune_past_intervals

Last ditch (but dangerous) method of reducing memory usage for
past_intervals, which can help very very unhappy clusters recovery.
A properly implemented version of this is in luminous.  This hacky
version was used successfully to recover multiple jewel-based clusters,
but is still only recommended for use when the OSD is otherwise unable
to recover.

This change is not cherry-picked from master because luminous implements
a more sophisticated version of this that changes the past intervals
representation entirely, but it is too invasive to backport.  This
workaround to prune just on startup should be sufficient for emergencies.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/osd/PG.cc