liutang123 opened a new issue #5801:
URL: https://github.com/apache/incubator-doris/issues/5801


   We have a cluster with many replica. We found that loading image is fast but 
save image is slow.
   
   We add some logs like follows:
   ```
   2021-05-11 20:53:56,163 WARN (leaderCheckpointer|93) 
[Catalog.saveImage():2000] Backends done 2780888362
   2021-05-11 21:13:23,941 WARN (leaderCheckpointer|93) 
[Catalog.saveImage():2002] DB done 2255394013
   ```
   Profile shows `FileOutputStream.writeBytes` cost much time
   
![image](https://user-images.githubusercontent.com/17537020/117973338-dcf0d300-b35e-11eb-9469-33cef29d3642.png)
   
   Suggest: Use buffer out put stream to reduce the number of system calls.


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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to