ndemoreau
ndemoreau

Reputation: 3869

how to change heroku dynos from rails

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

Answers (1)

Sahil kalra
Sahil kalra

Reputation: 9034

There are a couple of things you could Try for this:

  1. Heroku Plugin: adept-scale - Auto scales the web dynos when required

  2. Rails gem (just a proof of concept currently): heroku-autoscale - you will need to put in effort to implement this

  3. 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

Related Questions