Merge pull request #22783 from akka/wip-22638-limit-recoveries-master-patriknw

Limit number of concurrent PersistentActor recoveries, #22638 (for validation)
This commit is contained in:
Patrik Nordwall 2017-04-24 21:13:32 +02:00 committed by GitHub
commit 5ff6995e6c
8 changed files with 402 additions and 8 deletions

View file

@ -147,7 +147,13 @@ Recovery
By default, a persistent actor is automatically recovered on start and on restart by replaying journaled messages.
New messages sent to a persistent actor during recovery do not interfere with replayed messages.
They are cached and received by a persistent actor after recovery phase completes.
They are stashed and received by a persistent actor after recovery phase completes.
The number of concurrent recoveries of recoveries that can be in progress at the same time is limited
to not overload the system and the backend data store. When exceeding the limit the actors will wait
until other recoveries have been completed. This is configured by::
akka.persistence.max-concurrent-recoveries = 50
.. note::
Accessing the ``sender()`` for replayed messages will always result in a ``deadLetters`` reference,