You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2022/03/03 11:55:00 UTC

[jira] [Assigned] (RATIS-1545) Raft log to can't be committed in log flush intervals

     [ https://issues.apache.org/jira/browse/RATIS-1545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz-wo Sze reassigned RATIS-1545:
---------------------------------

    Assignee: Junhua Zhang

> Raft log to can't be committed in log flush intervals
> -----------------------------------------------------
>
>                 Key: RATIS-1545
>                 URL: https://issues.apache.org/jira/browse/RATIS-1545
>             Project: Ratis
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 2.3.0
>            Reporter: Junhua Zhang
>            Assignee: Junhua Zhang
>            Priority: Major
>         Attachments: image-2022-03-03-16-58-01-825.png
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> We previously tried to reduce disk IO by introducing a minimum interval between flushes, the relevant pr is here: [https://github.com/apache/ratis/pull/611]
> However, after subsequent tests, we found that the raft performance has degraded,  because {color:#ff0000}flushIfNecessary(){color} function does {color:#ff0000}more operations{color} than just flushing the stream:
> !image-2022-03-03-16-58-01-825.png|width=793,height=609!
> Since we enforced the minimum time for each flush, the raft log to can't be committed in flush intervals, which reduces the performance of raft.
> So we want to {color:#FF0000}separate out.flush()  from flushIfNecessary() {color}and execute it asynchronously, so that the process of writing to disk will not block the operation of other threads.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)