IronWorker CaaS Worker: Heroku Dyno Setup

In this article, we will tell you the steps you need to set up Heroku Dyno for IronWorker.

Setup Outline:

  1. Create a Heroku App
  2. Install Heroku CLI
  3. Deploy Your App
  4. Costs
  5. Notes
  6. Security
  7. Pros & Cons

1. Create a Heroku App

On your Heroku dashboard, click on “Create new app”, specify the app name and the region and click “Create app”.
That is all you need to start deploying your app to Heroku.

dyno_1
dyno_2
Screen Shot 2021-04-25 at 9.48.52

2. Install Heroku CLI

One of the best things Heroku provides is Documentation. Check how to install the Heroku CLI in few steps here: https://devcenter.heroku.com/articles/heroku-command-line

dyno_4

The install steps generally are
- Install Heroku app based on your OS
- On the terminal run the login command ​$ heroku login​ ​it will redirect you to the browser page for authentication.
- Or run ​$ heroku login -i​ ​to enter credentials on terminal

3. Deploy your app

Create a new local directory and run ​$ init git,​ or add Heroku app to an existing git tracked directory.

Run ​$Heroky create​ to create a new Heroku App ( a random name will be given)
Or specify your existing app name to add Heroku app to the directory
$ heroku git:clone -a xe-alert-node

Commit your local changes​ $ git add.​ &​ $ git commit -m “Commit Message” then run ​$ git push heroku [BRANCH_NAME] Your application will be deployed to Heroku Dyno now as a web dyno.

To access your app run ​$heroku open​ it will open a new browser window with your app public subdomain.

Screen Shot 2021-04-29 at 17.40.16

To view the console log run​ $ heroku logs --tail
In order to add your .env variables to the Heroku Dyno Enviroment run​ $

heroku config:set $(cat .env | sed '/^$/d; /#[[:print:]]*$/d')

Raed more on Heroku dyno environment variables here:

https://devcenter.heroku.com/articles/config-vars

Screen Shot 2021-04-29 at 17.47.35

4. Limits

Heroku Dyno Limits:

Max Memory : 512Mb - 14GB based on Dyno size Concurrent dynos: 1, 5, 50
Max Web Dyno Timeout: 60 sec

More details on limits: ​https://devcenter.heroku.com/articles/limits

5. Costs

Heroku Dyno costs start from $0 for the free tier to $500 per month in six different flavours.
Full features and prices here: ​https://www.heroku.com/dynos

dyno_5

6. Notes

Easy to setup, powerful documentation, big community, super fast on deploying and running.

7. Security

Heroku Dyno is compliant with PCI DSS Level 1, ISO 27001/27017/27018, SOC 1/2/3 , and HIPAA.
https://www.heroku.com/compliance

8. Pros & Cons

Dyno is a lightweight CaaS service that allows rapid deployment of applications and containers. It’s mainly designed for application deployment and supports running as a worker.

Compared to IronWorker task scheduling not supported, offers dedicated clusters for performance-m & performance-l dyno types only. Concurrency limits are the lowest among other competitors.

Leave a Comment





This site uses Akismet to reduce spam. Learn how your comment data is processed.