SincereXIA opened a new pull request #611:
URL: https://github.com/apache/ratis/pull/611


   ## What changes were proposed in this pull request?
   
   This pull request adds a configurable change that allows raft logEntry to 
not flush to disk immediately after a write. Instead, it will check whether 
flush is required in the run loop of RaftLogWorker, and we set a minimum flush 
interval to reduce the number of disk io.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/RATIS-1534
   
   ## How was this patch tested?
   
   We use the ozone freon ockg tool to detect the effect of the changes, 
testing the command:
   
   ```
   bin/ozone freon ockg  --volume=volume  --bucket=defaultbucket  --thread=10 
--number-of-tests=300  --size=`expr 32 \* 1048576` --prefix=stream
   ```
   
   We tested the speed of writing 32MB and 128MB objects before and after 
enabling asynchronous flush
   
   
![image](https://user-images.githubusercontent.com/20393870/155646950-a2373a74-7ae8-4fba-845f-2b5dddb5143f.png)
   
   
   
   After using async log flush, the average write speed will increase by about 
25%
   


-- 
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