hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.94k stars 1.96k forks source link

Update failed/unhealthy allocations first #3230

Open alxark opened 7 years ago

alxark commented 7 years ago

Hello. I'm using nomad to run MySQL server. Sometimes my MySQL instances become failed ( according to healthcheck) and i want to upload fixed to servers configuration (i'm using custom mysql control scripts for replication and auto failover). Today i found that during deployment nomad don't check if allocation healthy or not and just update it. I would like to change this behaviour and update unhealthy allocations first.

schmichael commented 7 years ago

Great idea @alxark. Thanks for the good writeup and usecase. Nomad doesn't currently prioritize unhealthy allocations during deployments but could in the future.