Heroku Premature Termination Of My Free Dynos - heroku

I was using Heroku for free to demo some of my applications which didn't have many users. I received the notice that the free dynos are going to be terminated on April 30th, 2023. I recently made a new deployment for one of my applications and found that the free dynos are terminated for this app with the option to only subscribe for paid dynos.
Has anybody faced the same issue? Can I return to free dyno usage just till the end of the notice period?

Related

How many days does a free Heroku app stay up?

According to heroku
Starting today, Heroku accounts have an account-based pool of free dyno hours for use on free apps. This replaces the 18 hours a day limit on free apps, allowing a free app to run 24/7 if needed. New accounts receive 550 free dyno hours and you can verify your identity with a credit card for an additional 450 hours
→ How are dyno hours calculated
If my app is always up, how many days will it stay up for (If I have 550 dyno hours) or does it depend on traffic and usage?
An app consumes hours based on their uptime, no matter the usage or traffic your app receives.
If you do the math, 550 hours is equal to 22.92 days.
If you were to add your payment method, it would give you a thousand hours, enough for a single app to run 24/7.

Tweepy Bot Crashes After Duplicates

I have a question about running my Twitter bot 24/7, and I already have it uploaded to Heroku. The code works great.
However, the dynos will fall asleep after 30 minutes of non-use. This is great, however, my code is programming to tweet the same thing once a day.
In order to keep the dynos alive, the code has to be run every 30 minutes. The tweet, however, is the same thing once a day.
Is there a way to keep the Twitter code running when receiving a duplicate?
It seems like you want to bypass the limit, but that is not possible. if you keep running that service all day your free hours will expire.
Verified accounts come with a monthly pool of 1000 Free dyno hours; unverified >accounts receive 550. When a Free dyno is active, it draws from the pool; your free >apps can run as long as there are dyno hours left in your monthly pool.
instead, better to upgrade the Heroku to the premium version.

Why isn't free dyno usage updating?

I've had this heroku account for almost two weeks, but in the billing section my free dyno hours used this month remains at 0%. This isn't possible because I've set an uptimerobot to hit my heroku API every 29 minutes (to prevent it from sleeping).
Contemplating upgrading to Hobby so accurate info is nice to have here.

Is it possible to stop a Heroku Daily Dyno Restart for a Hobby Dyno

Is it possible to stop a Heroku Daily Dyno Restart for a Hobby Dyno?
My Goal is to stop the Dyno from restarting.
In short, No (with an aside that the restart shouldn't be seen as a bad thing).
From the Heroku Dynos and Dyno Manager Docs
Dynos are also restarted (cycled) at least once per day to help maintain the health of applications running on Heroku. Any changes to the local filesystem will be deleted. The cycling happens once every 24 hours (plus up to 216 random minutes, to prevent every dyno for an application from restarting at the same time).
Cycling happens for all dynos, including one-off dynos, so dynos will run for a maximum of 24 hours + 216 minutes.
In addition, dynos are restarted as needed for the overall health of the system and your app. For example, the dyno manager occasionally detects a fault in the underlying hardware and needs to move your dyno to a new physical location.
Additionally, Dynos Restart if you:
create a new release by deploying new code
change your config vars
change your add-ons
run heroku restart
With Hobby Dynos, the real issue is that inactivity causes the Dyno to sleep throughout the day. From my personal experience, waking up a sleeping dyno can cause a page to take ~30s to load.
There are many solutions to 'ping' the dyno on regular intervals to keep it 'awake'.
An example solution for a Node Server is heroku-self-ping

Heroku Free v Hobby package

I have an app on the free heroku version, and want to upgrade to hobby, to avoid the 6 hours of required dyno sleep per day.
But I'm confused about the discrepancy between Heroku pricing page, and the info I get from running heroku apps:info in my app.
My app:
Add-on: heroku-postgresql (postgresql-angular-8...)
Plan: hobby-dev
Price: free
as: DATABASE
The above implies the app is already on hobby... which is confusing because I'm not currently paying anything, and the dyno sleeps 6 hours a day.
Heroku ( https://www.heroku.com/pricing )
Per Heroku pricing page, hobby is not free ($7 / dyno / month). And does not need to sleep.
I'd like to upgrade to the cheapest paid version that doesn't require dyno sleep and am confused.
Has anyone dealt with this and can clarify?
Your database in on the hobby-dev plan which has a row limit of 10,000 rows but your web server (dyno) is probably on the free plan. See here for more details.

Resources