Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run good_job on a separate machine #162

Closed
bluestorm21 opened this issue Oct 23, 2020 · 1 comment
Closed

how to run good_job on a separate machine #162

bluestorm21 opened this issue Oct 23, 2020 · 1 comment

Comments

@bluestorm21
Copy link

Can you please explain :

$ bundle exec good_job start

Ideally the command-line tool should be run on a separate machine or container from the web process. For example, on Heroku:

web: rails server
worker: bundle exec good_job start

Not everyone is using heroku, I use a load balancer in front of multiple containers that hold my rails app, not clear to me what a separate machine or container from the web process means

@bensheldon
Copy link
Owner

Thanks you pointing out some awkward phrasing in need of context. I think better the line should read should be run on a machine or container separate from the web process.

How are you managing your containers? For example, I assume that somewhere you have a line like bundle exec rails s --port=PORT. The documentation is intended to describe adding an additional process to whatever manager you are using:

PaaS:

  • Heroku: additional line in Procfile
  • Digital Ocean App Platform PaaS: New worker component
  • Kubectl: new deployment

EC2 / Digital Ocean Droplet:

  • Systemd: new service file
  • Upstart: new service file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants