]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: trim pg logs based on a per-osd budget
authorSage Weil <sage@redhat.com>
Thu, 16 Jan 2020 17:22:34 +0000 (11:22 -0600)
committerKefu Chai <kchai@redhat.com>
Wed, 22 Jan 2020 01:13:00 +0000 (09:13 +0800)
commit0db140c15c16ce45de2e59f075de2b70c0a9cd95
tree938ccec0212cca43e06050671a4de6b87da17f57
parent8aa8b41fa5cb54fe26c53bdc23f6dd6e4202ee75
osd: trim pg logs based on a per-osd budget

Set the default budget based on the current defaults: 3000 per osd, and a
rule of thumb target of 100 PGs per OSD.  Set the per-PG trim target
by dividing the overall value by the number of PGs on the OSD.

Increase the max pg log length alone, so if the OSD has <100 PGs,
those PGs will get more entries.  Reduce the minimum to be smaller than
the max.  Use the min/max config options to bracket what is allocated to
a single PG.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/crimson/osd/pg.cc
src/crimson/osd/pg.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/PeeringState.cc
src/osd/PeeringState.h