I use Akka Cluster for two reason:
Singleton are used for “master/slave” for services who doesn’t support a real and beautiful sharding.
When I start my cluster, everything is fine. But if I kill -9 my leader (like machine down suddenly), there is not autodiscovery of a new leader if I set akka.cluster.auto-down-unreachable-after=off
With settings like akka.cluster.auto-down-unreachable-after=10s, everything is fine, old leader is removed and a new one take the lead.
But this parameter is discouraged for production environment.
And if I try to implement my own version, I will definitively do a far less better job than you.
So, my question is: I understand the risk like documentation said (https://doc.akka.io/docs/akka/current/cluster-usage.html), but is there a way do to “better” without ringing someone in middle of a night in case of machine shutdown ?
Thanks for you time !