Nomad rolling upgrade - allocation ordering


I have a question about nomad task updates. We have a rolling deploy for a task group that we update by changing the artifact. We’d like to control the order that the allocations get updated in - or at least specify that one allocation is “last”. Is this possible somehow? I haven’t seen anything obvious in the docs.

Use case: we’re running a service that uses RAFT consensus, and we would like to restart the current leader last to prevent multiple leadership changes during the update.


  • Kevin