-
Improvement
-
Resolution: Won't Do
-
Low
-
None
-
None
-
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.