From reference.conf
:
# Settings for the coordinator singleton. Same layout as akka.cluster.singleton.
# The "role" of the singleton configuration is not used. The singleton role will
# be the same as "akka.cluster.sharding.role".
# A lease can be configured in these settings for the coordinator singleton
coordinator-singleton = ${akka.cluster.singleton}
Which means that you cannot start a shard region in role1
with the coordinator-singleton
being located somewhere in role2
.
We use spot VMs heavily and if the oldest node is shutdown it creates a bigger disruption than with any other node. My idea was to introduce a non-spot VM to be responsible for shard coordinators and when looking up the config I realized that it is not possible. I could just add a non-spot VM and eventually it will always become the oldest node, but I don’t actually want to run any sharded actors on it, the goal would be to keep it as small as possible so that it only needs to coordinate the shards.
Is this an accidental limitation or would changing this behavior be very difficult?