Support chunked resharding in blockstores

This commit is contained in:
Vitaliy Filippov
2026-01-25 01:56:29 +03:00
parent 233d2b2a09
commit 2b801a7ffa
8 changed files with 262 additions and 77 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ void osd_t::init_blockstore(std::function<void()> on_init)
// Pre-configure pool PG shards
for (auto & pool_item: st_cli.pool_config)
{
bs->reshard(pool_item.first, pool_item.second.pg_count, pool_item.second.pg_stripe_size);
auto st = bs->reshard_start(pool_item.first, pool_item.second.pg_count, pool_item.second.pg_stripe_size, 0);
assert(!st);
}
// Autosync based on the number of unstable writes to prevent stalls due to insufficient journal space
uint64_t max_autosync = bs->get_journal_size() / bs->get_block_size() / 2;