diff options
author | sajibreadd <sajibreadd@gmail.com> | 2024-05-27 09:30:06 +0200 |
---|---|---|
committer | sajibreadd <sajibreadd@gmail.com> | 2024-06-26 10:47:03 +0200 |
commit | 73b80a9a2c38259346fb646f85fa2ba4dcbb1329 (patch) | |
tree | 589c9f9aefc75b54f77226c2643f42432d7d14d0 /src/os/bluestore/BlueFS.cc | |
parent | Merge pull request #57729 from idryomov/wip-66232 (diff) | |
download | ceph-73b80a9a2c38259346fb646f85fa2ba4dcbb1329.tar.xz ceph-73b80a9a2c38259346fb646f85fa2ba4dcbb1329.zip |
Warning added for slow operations and stalled read in BlueStore. User can control how much time the warning should persist after last occurence and maximum number of operations as a threshold will be considered for the warning.
Fixes: https://tracker.ceph.com/issues/62500
Signed-off-by: Md Mahamudur Rahaman Sajib <mahamudur.sajib@croit.io>
Diffstat (limited to 'src/os/bluestore/BlueFS.cc')
-rw-r--r-- | src/os/bluestore/BlueFS.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 9f419c19585..83fcb8bc02d 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -4214,6 +4214,15 @@ bool BlueFS::debug_get_is_dev_dirty(FileWriter *h, uint8_t dev) return h->dirty_devs[dev]; } +void BlueFS::collect_alerts(osd_alert_list_t& alerts) { + if (bdev[BDEV_DB]) { + bdev[BDEV_DB]->collect_alerts(alerts, "DB"); + } + if (bdev[BDEV_WAL]) { + bdev[BDEV_WAL]->collect_alerts(alerts, "WAL"); + } +} + int BlueFS::open_for_read( std::string_view dirname, std::string_view filename, |