I’m using Cluster sharding with 2 nodes.
I faced some timing issue when I test scale-in.
I’ve been used to call cluster.leave method to reduce number of node.
After node instance is terminated,
I expected the actor to be re-started on the live node even that was in dead node.
That was good as I expected.
But It takes too long time to re-start actor. It takes around 6 sec.
I got this log too.
The ShardCoordinator was unable to get an initial state within ‘waiting-for-state-timeout’: 5000 millis (retrying). Has ClusterSharding been started on all nodes
How can I re-start this actor immediately?