Concurrently initialize LedgerStorage to optimize startup performance.
Descriptions of the changes in this PR:
Optimize BookKeeper startup speed with multi-directory ledger configuration
Main Issue:
Motivation
During production upgrades, BookKeeper instances with existing data typically take 3 to 5 minutes to start up.
Changes
Parallelize the initialization of DbLedgerStorage to improve startup speed.
after:
I understand that this optimization requires providing the changes before and after the optimization? Is there any verification data available?
Create a big thread pool just for init storage instance is not a good idea. How many disks are you configured for one bookie?
The single-threaded configuration cannot fully utilize the performance of SSDs. Each SSD configured for a bookie node is set up with 4 or 8 directories, depending on the disk performance.
Create a big thread pool just for init storage instance is not a good idea. How many disks are you configured for one bookie?
+1