Bálint Sass
Bálint Sass

Reputation: 551

Is there a difference between to be "on" and to be "running" for a dyno?

https://www.heroku.com/pricing says that:

  1. a free dyno "Sleeps after 30 mins of inactivity, otherwise always on depending on your remaining monthly free dyno hours."
  2. a hobby dyno is "Always on"
  3. in case of hobby dynos: price is $7/month, and "You pay for the time your dyno is running as a fraction of the month."

My app will get approximately 5 requests per day which it will serve in 3-4 milliseconds each.

I think about changing from free dynos to hobby dynos to avoid sleeping. How much will I pay?

Am I right that it is only 5x4x30 milliseconds = 600 milliseconds running time in a month which is approximately $0? Or should I pay the whole $7/month?

Upvotes: 1

Views: 164

Answers (1)

dduffy
dduffy

Reputation: 406

I'm also wondering this myself. There's no clear answer on Heroku's website. The so called price "calculator" doesn't allow you to customise the number or type of dynos, let alone enter a estimated number of running minutes.

Judging by some of the comments on forms, I'm guessing it's the full $7 per month but it would be great if this could be clarified.

Answer: The price is $7 per month and there is no option for the dyno to sleep. Dynos can be turned off but this potentially disables functionality on the deployed application.

Also Note: You can't alway mix dyno types so you might have to pay for a worker dyno in addition to web dyno. This can be a real sting when you've been testing/developing with free web and worker dynos. So the jump is not necessarily from $0 to $7, but $0 to $14 per month.

Upvotes: 1

Related Questions