Richlewis
Richlewis

Reputation: 15374

Web Dynos in Heroku

I just wanted to see what the best practice in the following situation would be.

I have setup scheduler in my heroku app to run two rake tasks, (performs a screen scrape), these are ran once a day, now from what i have read i have 750 hours free per month of dyno processes but you accrue usage even when the dyno is idle.. So do i need to run

 heroku ps:scale web=0

so that the dyno doesnt accrue usage when not running or do i just leave it as it is?

What is the best thing to do here?

Thanks

Upvotes: 2

Views: 181

Answers (1)

mind.blank
mind.blank

Reputation: 4880

If you haven't added any more web workers then you should be on the free tier. If you log into your Heroku account and go to the app's dashboard you'll see an estimated monthly cost for resources used, you can double check that it's on $0.

I tested both heroku ps:scale web=0 and heroku ps:scale web=1 on one of my apps. Both leave the cost at $0, and the app is still online even with 0 web workers, so I'm not sure how that works.

You will however pay for the scheduler, for the time it was up to call the rake task. Might be a few dollars per month, or perhaps less than a dollar, depends how long it was up for.

Upvotes: 1

Related Questions