lordcheng10 opened a new pull request, #3260:
URL: https://github.com/apache/bookkeeper/pull/3260

   ### Motivation
   We often find that the two write caches are full, causing write requests to 
block:
   <img width="1629" alt="image" 
src="https://user-images.githubusercontent.com/19296967/166885183-973d1d30-d692-4209-adb8-7849f4ffd73a.png";>
   
   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 write cache into 
multiple blocks, the cache resources can be released faster, preventing the 
write request from waiting too long for the cache resources to be released;
   2. The current write cache is allocated according to the configured data 
directory, so that the write cache resources between directories cannot be 
shared. When the write cache resources corresponding to one directory continue 
to be full, it is possible that the cache resources of other directories are 
still relatively low. Idle, so that the full utilization of the write cache is 
not used;
   
   
   ### Changes
   1.Two write caches become multi-cache blocks;
   2.All data directories share write cache resources;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to