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 be fully utilized.
Our configuration is as follows: ledgerDirectories=/data2/bk-data,/data3/bk-data,/data4/bk-data dbStorage_writeCacheMaxSizeMb=20480 At this time, writeCacheSize=20g/3/2=3.2g, we need 3.2g data flush to complete before releasing the cache resource. I think we should let users choose how many blocks of cache to configure according to different scenarios.