Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-2030

Add selectively-bounded implementation of Mailbox to prevent OOM

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Low Low
    • None
    • None
    • clustering
    • None

      The default mailbox used by Shards is UnboundedDequeBasedControlAwareMailbox.
      Having unbounded mailbox can cause OOM issues in scenarious, when the Leader's machine is much faster than Follower's and the Leader is under heavy load. In such case the Leader will replicate changes much faster than the Follower can apply them and thus fill up the Follower's queue to the point of OOM crash. 

      It can be solved by an alternative implementation of Mailbox, which can be configured to limit the size of both the Control Queue and Normal Queue if neccessary.

            tibor.kral Tibor Král
            tibor.kral Tibor Král
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: