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

Add cooldown functionality to scaling policies and storage backend. #77

Closed jrasell closed 4 years ago

jrasell commented 4 years ago

Sherpa policies now allow the specifying of a cooldown as a time duration in seconds. When a scaling activity is requested, the cooldown is checked against the last scaling event for the job group. If the last event has occurred within the cooldown period, the scaling request will be denied.

Closes #49

commarla commented 4 years ago

Hi @jrasell the corresponding meta is missing. Is it on purpose ?

jrasell commented 4 years ago

@commarla could you elaborate on what you mean?

commarla commented 4 years ago

@jrasell maybe I missed it but I didn't see the corresponding nomad meta for the cooldown feature in your pr.

jrasell commented 4 years ago

@commarla oh yeah, good shout. I have to fix up the conflicts when I get time so i'll address that also. Thanks a lot for your help!