woodpecker-ci / autoscaler

Scale your woodpecker agents automatically to the moon and back based on the current load.
Apache License 2.0
29 stars 5 forks source link

Add agent idle timeout #162

Closed anbraten closed 3 weeks ago

anbraten commented 3 weeks ago

closes #73

Allows to set an idle time an agent has before its being drained.

Not sure how we could implement the "deletion window" for hetzner best. So an agent is only deleted / drained if it is just about the next full hour (might however be possible to implement this in a next step anyways).

lukashass commented 3 weeks ago

@anbraten Writing down what is meant by idle and inactive might be a good idea at this point.

anbraten commented 3 weeks ago

Any suggestions where we should do that?