The 2-block cache sometimes affects the processing power of bookie. We have
encountered the problem of write failure because both caches are full. If the
write cache is increased, it will cause too much data in a flush, which will
lead to a longer time for a flush, and the cache resources cannot
The reason for having 2 block is on purpose to keep the entries in the
cache for the longest possible time. That will maximize the number of
entries for the same ledger that will be stored sequentially on the disk
and it will increase the read performance.
On Wed, Jun 8, 2022 at 12:05 AM lordcheng
The current write cache has only 2 blocks, which has the following deficiencies:
1.Insufficient use of cache: When half of the write cache
is flushed, it must wait for all the data in the write cache to be flushed
before it can be released. With the same write cache size, if we divide the