ajmurmann / resque-heroku-autoscaler Goto Github PK
View Code? Open in Web Editor NEWResque plugin to autoscale your workers on Heroku
Resque plugin to autoscale your workers on Heroku
Hey there! I was taking a look at resque, and found this awesome gem, something I was thinking of doing myself.
A quick question though, is there any plans to have this work with the new Heroku Cedar Stack? It would be awesome to use this same method to scale different process models.
Cheers!
Your example for new_worker_count
config is incorrect. Change it to:
(pending/5.0).ceil.to_i
Unless you put the decimal point on the denominator you will effectively be getting the floor instead of the ceiling.
I don't see anything in the documentation abou running in development mode, and don't see any indications that it's handled in the code. I'm currently only extending my workers in environments that are running on Heroku, but it would be great if there were a more graceful way of handling that, maybe by being able to set a disabled boolean on the config.
If that were set then the plugin could just log what it would have done, rather then attempting to scale up the workers on my live applications just because I queued a job on my development machine.
I'm very happy to write a patch to implement that if it's of interest, but I just want to check I've not missed anything obvious first.
When I enqueue a job I get this error:
NameError (uninitialized constant Resque::Plugins::HerokuAutoscaler::Heroku)
I don't know why I would need it, but I added to my job class:
require 'heroku-api'
Then I get:
NameError (uninitialized constant Heroku::Client)
Huh? So I add:
require 'heroku/client'
Then I get:
NoMethodError (undefined method
[]' for nil:NilClass)`
For each of these errors my stack trace stops at the initial call to #enqueue
so that's where I gave up.
I think I followed the readme instructions exactly. Thoughts?
Hey there!
I'm gearing up to work on Resque 2.0, and I'd like to coordinate better with plugin authors to make sure stuff doesn't break.
I'd like to know a few things:
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.