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
leadership: if cluster state exists do not overwrite cluster info #76
Describe the bug
If existing cluster state exists in the backend store, a new Sherpa server which gains leadership will generate a new cluster ID and overwrite the state.
To reproduce
run a single Sherpa server using Consul backend
stop the Sherpa server
observe the cluster state info
start a new Sherpa server
observe the cluster ID gets updated
Expected behavior
A server which joins the state of an existing cluster should not overwrite the ID or name, but should respect what is originally found.
Environment:
sherpa version v0.2.1+dev
Date: 2019-10-14 09:27:50.896254 +0000 UTC
Commit: be871e9
Branch: master
State: dirty
Describe the bug If existing cluster state exists in the backend store, a new Sherpa server which gains leadership will generate a new cluster ID and overwrite the state.
To reproduce
Expected behavior A server which joins the state of an existing cluster should not overwrite the ID or name, but should respect what is originally found.
Environment: