JustinLove / autoscaler

Start/stop Sidekiq workers on Heroku
226 stars 42 forks source link

Count work currently being done #40

Closed joelvh closed 9 years ago

joelvh commented 10 years ago

Avoid scaling down to zero when work is still being performed.

joelvh commented 10 years ago

Initially I made sure that system.workers was also added in, but then refactored to create system.total_work and system.any_work? to add up all 4 metrics to see if there is any activity before attempting to scale down.

joelvh commented 10 years ago

@JustinLove any interest in pulling this in?