Fixes: https://tracker.ceph.com/issues/74319
Signed-off-by: Jaya Prakash <jayaprakash@ibm.com>
flags:
- runtime
with_legacy: true
+- name: bluefs_debug_force_slow
+ type: bool
+ level: dev
+ desc: For testing. Force BlueFS to allocate files on slow device.
+ long_desc: When enabled, the RocksDBBlueFSVolumeSelector will ignore normal
+ placement policy and redirect allocations to slow device.
+ default: false
+ flags:
+ - runtime
+ with_legacy: true
- name: bluestore_bluefs
type: bool
level: dev
uint8_t RocksDBBlueFSVolumeSelector::select_prefer_bdev(void* h) {
ceph_assert(h != nullptr);
uint64_t hint = reinterpret_cast<uint64_t>(h);
+ if (g_ceph_context->_conf->bluefs_debug_force_slow) {
+ if (hint != LEVEL_LOG) {
+ return BlueFS::BDEV_SLOW;
+ }
+ }
uint8_t res;
switch (hint) {
case LEVEL_SLOW: