]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: Add health warning for bluestore fragmentation
authorAdam Kupczyk <akupczyk@ibm.com>
Fri, 20 Dec 2024 20:21:14 +0000 (20:21 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 12 Feb 2025 16:14:05 +0000 (16:14 +0000)
commit72263dbb7984828844c87bdb3b3ff475a68b1ac6
tree86f37cf0355eb8e90be8d1a9c2a6cb6064f8754f
parent862ed6e9cd8cece7edc6d7d45505b5a4b4f00e26
os/bluestore: Add health warning for bluestore fragmentation

Changed "bluestore/fragmentation_micros" from quick imprecise to
slow but more representative score.
Introduced config "bluestore_warn_on_free_fragmentation" that controls
when free space fragmentation score becomes a health warning.

Currently calculation of fragmentation score might be non-instant for
severly fragmented disks. It might induce stalls to write IO.
Config value "bluestore_fragmentation_check_period" control score
calculation period.

In future, costly score calculation will be replaced with method that
continously updates score.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/common/options/global.yaml.in
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h