lerna-stack / akka-entity-replication

Akka extension for fast recovery from failure with replicating stateful entity on multiple nodes in Cluster
Apache License 2.0
30 stars 1 forks source link

Disabling specific raft actor's launching by its own shard id #173

Closed ydash closed 2 years ago

ydash commented 2 years ago

Add feature of disabling raft actor's launching by specifying its own shard id.

Ignore following launching trigger of RaftActor

ydash commented 2 years ago

@xirc

As same as RaftActor, CommitLogStoreActor also should stop itself if its shard ID is disabled. Would it be possible also to change CommitLogStoreActor? CommitLogStoreActor can use its shardId method to get its shard ID.

I implemented feature of stopping itself to CommitLogStoreActor.

https://github.com/lerna-stack/akka-entity-replication/pull/173/commits/5f8f982ac48afcf453910a621e370b6fe2c0ce24 https://github.com/lerna-stack/akka-entity-replication/pull/173/commits/44e7a8aafba807071918949627a36b87d8538904