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

the consul client should be reused across backends #96

Closed jrasell closed 4 years ago

jrasell commented 4 years ago

Currently a new Consul client is created when a backend process needs access to Consul. This is not dangerous nor very inefficient, but it would be better if a single client was created and then passed to each sub-process that required it.