jrasell / sherpa

Sherpa is a highly available, fast, and flexible horizontal job scaling for HashiCorp Nomad. It is capable of running in a number of different modes to suit different requirements, and can scale based on Nomad resource metrics or external sources.
Mozilla Public License 2.0
163 stars 8 forks source link

Meta policy watcher should be leader protected and update backend #55

Closed jrasell closed 5 years ago

jrasell commented 5 years ago

Currently the policy meta engine will not run if the Consul backend is enabled due to the legacy way in which the storage was built. In addition the meta policy watcher is not leader protected and so multiple Sherpa servers will process job meta changes.

The meta policy engine should be updated to allow it to run in conjunction with the Consul storage backend. The meta policy engine should also be leader protected, so that only one Sherpa server processes updates.