Questions tagged [dyno]

Heroku Dynos are lightweight containers for running apps.

Dynos are isolated, virtualized Linux containers that are designed to execute user code on the Heroku platform.

136 questions
1
vote
0 answers

Avoid/Disable Heroku one-off dynos autorestart of crashed apps (or shut down them gracefully)

I have a docker ubuntu container with a python script inside which dies under certain conditions. I have deployed it as a one-off dyno. I have scheduled it with heroku scheduler to run twice a day. I tried every possible way to stop a python…
1
vote
1 answer

How to create permanent files on Heroku?

I have a telegram bot with a Postgres DB hosted on Heroku Free dyno. In one stage of my code, I want to save pickled files permanently so that I can access them later. Storing it on a table doesn't feel like a nice idea as it is a nested class with…
Jihjohn
  • 398
  • 4
  • 19
1
vote
1 answer

Heroku Dyno Usage 2 Workers

How are free dyno hours consumed? I have only one script hosted on Heroku, a discord bot, but it has 2 workers running on it. It used up all of my free hours well before I expected it to. When a script has 2 workers running on it, does it consume…
T Mayer
  • 171
  • 2
  • 11
1
vote
1 answer

How to install htop on a Heroku dyno?

Following the standard installation procedure of htop produces the following error: ~/htop-2.2.0 $ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system…
1
vote
1 answer

how to you stop a worker dyno in heroku

suppose I am running a worker dyno with following python code in heroku import time time.sleep(60*60) exit() I want to stop the worker completely, this code ends the program, but it starts again having the same effect as heroku ps:restart worker…
Nikhil Singh
  • 353
  • 1
  • 17
1
vote
1 answer

Heroku free dyno "Idling" mid-test: what killed it?

I have a Heroku free web app which was working nicely with my initial testing, but with a bigger test it just crashed: 2020-06-17T21:45:10.068131+00:00 app[web.1]: my last console.log message 2020-06-17T21:46:39.334604+00:00 heroku[web.1]:…
Tim Adye
  • 101
  • 1
  • 3
1
vote
1 answer

Heroku Dyno Free Hours

So I have deployed a telegram bot through Heroku. For now I have 550 hours (I have only this app). If i verify my credit card I can get a total of 1000 hours. So... with one app and 1000 hours my app will be forever online right?(excluding the…
Minjo
  • 13
  • 3
1
vote
1 answer

How can I configure my heroku app for SSL?

I would like to configure my heroku app to use SSL (https) I apparently did something wrong based on the information provided in this link https://devcenter.heroku.com/articles/automated-certificate-management here is what I have done thus…
MLissCetrus
  • 423
  • 3
  • 21
1
vote
1 answer

How does a single dyno consume hours?

How do dynos consume hours? Given that I have a 1000 hour quota, if I only have a single dyno in a project, does that mean I will never go over my quota? (As the dyno hours / day exceeds 24 in that case) Can I host a JSON file and have it be…
CAG2
  • 381
  • 2
  • 14
1
vote
0 answers

Looping encounters on Heroku Dyno Upgrade

I've encountered some problems when I tried to upgrade or add a dyno on my application. After using 2 dynes, it seems like my application process started looping and the process in not proceeding. It's working fine when I'm using 1 dyno server. Do I…
trumanblack1025
  • 471
  • 2
  • 8
  • 19
1
vote
0 answers

Heroku Crashed And Exit 0 But Works on Bash with "python appname"

I uploaded a python scripts to heroku.When i start up it the logs print what i code in program but it crashed at the end of all process. when i use heroku bash and typed python appname it works fine no crashing ? Do you have any idea why ? Thank…
digging
  • 131
  • 1
  • 2
  • 9
1
vote
1 answer

Heroku Dyno Memory versus Database Memory

I'm new to heroku and wondering about their terminology. I host a project that requires seeding to populate a database with tens of thousands of rows. To do this I employ a web dyno to extract information from APIs across the web. As my dyno is…
Leland Reardon
  • 135
  • 2
  • 12
1
vote
0 answers

How are Heroku dyno names ($DYNO) assigned?

I'm interested in assigning different workloads to each worker of a particular type in Heroku. The workload is continuous rather than discrete so a work queue is not appropriate. I could coordinate work through a database or Zookeeper, but these…
AJ Prax
  • 11
  • 2
1
vote
1 answer

Keeping my JAVA (jar) program running on Heroku

I have made a bot in Java and it works great when I run the command: heroku run nohup java -jar bot.jar However, after 24h Heroku closes it because of their Dyno policy. So, I thought of making a Procfile in order for it to execute the command…
l1904l
  • 13
  • 2
1
vote
1 answer

HeroKu, how to set up the time period before a Dyno become idle and sleep caused by no request coming

Hey My question is simple. By default, a heroki dyno goes sleep when in 30 mins no request coming. I want this period reduced to 10 mins. How to do that?
Acton
  • 255
  • 4
  • 13