]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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, 19 Feb 2025 16:42:26 +0000 (16:42 +0000)
commit6bcba24896df1d7fbcebb1d3f724c925d55b0c59
tree2f0edeacbfe9b5a0ddfe222753cb8c253536a068
parent84032c4a705abd3bc42ab635d095339e2f3bab1c
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>
(cherry picked from commit 72263dbb7984828844c87bdb3b3ff475a68b1ac6)
src/common/options/global.yaml.in
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h