# How to restore a sharded persistent actor on a node crash?

**URL:** <https://discuss.akka.io/t/how-to-restore-a-sharded-persistent-actor-on-a-node-crash/4588>\
**Category:** Persistence / Event Sourcing\
**Tags:** akka-cluster\
**Created:** [July 10, 2019, 8:42am UTC](https://discuss.akka.io/t/how-to-restore-a-sharded-persistent-actor-on-a-node-crash/4588 "2019-07-10T08:42:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanojkodikkara](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/sanojkodikkara/32/1519_2.png) [@sanojkodikkara](https://discuss.akka.io/u/sanojkodikkara)\
**Post date:** [July 10, 2019, 8:42am UTC](https://discuss.akka.io/t/how-to-restore-a-sharded-persistent-actor-on-a-node-crash/4588/1 "2019-07-10T08:42:11Z")

</div>

I have persistent sharded actor instances running in akka cluster. If a node crashes or goes down, the actor instances are getting recovered on other nodes on further messages to them. I am curious to know is there any way to recover an actor even if there is no further messages to it ?

In other words how to re-create a sharded persistent actor from a failed/crashed node to another cluster node.

---

<div class="post-metadata">

**Author:** ![hungai](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/hungai/32/1371_2.png) [@hungai](https://discuss.akka.io/u/hungai)\
**Post date:** [July 10, 2019, 12:11pm UTC](https://discuss.akka.io/t/how-to-restore-a-sharded-persistent-actor-on-a-node-crash/4588/2 "2019-07-10T12:11:59Z")

</div>

Hi @sanojkodikkara Have you looked at [Remember Entities](https://doc.akka.io/docs/akka/current/cluster-sharding.html#remembering-entities). When configured to remember entities, whenever a `Shard` is rebalanced onto another node or recovers after a crash it will recreate all the entities which were previously running in that `Shard` .

Something to keep in mind is that the performance cost of `rememberEntities` is rather high when starting/stopping entities and when shards are rebalanced. This cost increases with number of entities per shard and we currently don’t recommend using it with more than 10000 entities per shard.
