skynetservices/skynet-archive

Cluster config

erikstmartin opened this issue · 1 comments

it would be nice to have a utility maybe as part of sky and providing it a config file, to ensure the number of services exist.

For Example:

Region1 needs to always have a minimum of 10 instances of ServiceA at version 2
Region2 needs to mirror Region1

things like this, so that if a node goes down loosing services on this node would make the requirement fall under the threshold and the cluster can rebalance by finding new nodes to deploy instances of these services to in order to ensure set minimums.

I think this sort of configuration should be implemented by the sky daemons and should be stored in etcd or something similar.

/skynet/services/regionname/servicename/minimumrunning = 5