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 Nicholas Sze (JIRA)" <ji...@apache.org> on 2018/07/09 07:58:00 UTC

[jira] [Commented] (RATIS-265) Ratis Leader flow control request from raft client to avoid OOM errors

    [ https://issues.apache.org/jira/browse/RATIS-265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536636#comment-16536636 ] 

Tsz Wo Nicholas Sze commented on RATIS-265:
-------------------------------------------

We should limit the number of pending requests in RaftServerImpl.submitClientRequestAsync instead of in the sliding window.  Sliding window is per client.  It won't help the OOM problem if there are many clients.

> Ratis Leader flow control request from raft client to avoid OOM errors
> ----------------------------------------------------------------------
>
>                 Key: RATIS-265
>                 URL: https://issues.apache.org/jira/browse/RATIS-265
>             Project: Ratis
>          Issue Type: Bug
>    Affects Versions: 0.2.0-alpha
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>             Fix For: 0.2.0-alpha
>
>
> In scenario where there is lots of load on the Ratis leader, the leader accepts and adds all the requests as pending appends into the sliding window.
> However if there are lots of pending replies in the sliding window, the leader should reply with an error/exception to the client to retry the command later.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)