Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Scaling to multiple workers #23

Closed
jaimeiniesta opened this Issue · 1 comment

1 participant

@jaimeiniesta

I'd love to be able to scale up and down depending on the number of pending jobs on the queue, like hirefire does:

https://github.com/meskyanichi/hirefire

That is, not just switching between 1 and 0 workers, but being able to grow to use 5, 4, 3, 2, 1, 0 workers... as needed.

Is this planned or should I start working on this myself? From my point of view this would be easy, instead of using :qty => 1 or :qty => 0 on https://github.com/lostboy/workless/blob/master/lib/workless/scalers/heroku_cedar.rb#L12 , use something like :qty => workers_needed , where "workers_needed" would be defined as a config option.

@jaimeiniesta

OK, I've been live testing this for over a month at http://w3clove.com and has worked like a charm, so I just sent a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.