Reputation: 3869
I have an application that processes a lot of data but has very few visitors.
I need about 4 dynos when I have visitors but I don't have visitors every day.
Is there a way to add dynos from my rails app when one logs in?
Thanks.
Upvotes: 4
Views: 438
Reputation: 9034
There are a couple of things you could Try for this:
Heroku Plugin: adept-scale - Auto scales the web dynos when required
Rails gem (just a proof of concept currently): heroku-autoscale - you will need to put in effort to implement this
Web service: hirefire - Can schedule on which days you need more Dynos
Some Stackoverflow links for Question like these:
OR
Using Heroku Platform API via Ruby code on Login:
Upvotes: 3