dtmtec / dyno_scaler Goto Github PK
View Code? Open in Web Editor NEWScale your dyno workers on Heroku as needed, pay only for what you use!
License: MIT License
Scale your dyno workers on Heroku as needed, pay only for what you use!
License: MIT License
Currently DynoScaler scales workers based on the number of pending and working workers not taking into account the queues. So if you have multiple worker types, processing different queues it has no way to know which worker types you would need to scale.
This issue relates to #3.
On Heroku you may have multiple types of workers. DynoScaler is currently hardcoded to scale the worker
process. It would be nice to have a way to configure this globally and also per job class.
DynoScaler.config.worker_process = 'my-worker-process'
class MyJob
include DynoScaler::Workers::Resque
worker_process 'my-other-worker-process'
end
More of a feature request than an issue. :)
When enqueuing lots of jobs at once it would be nice to have a way to prevent DynoScaler to fire multiple heroku api calls. Currently if you enqueue 100 jobs it will fire 100 api calls to heroku.
One simple solution would be to let the developer to enqueue jobs within a block of code, and then scale workers after it is run:
DynoScaler.scale do
100.times do |index|
Resque.enqueue(MyJob, index) # no scaling would happen here
end
end # after the block is run it would scale based on the queue status
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.