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

Document pattern for multiple workers via systemd #981

Closed
anseljh opened this issue Jul 24, 2018 · 3 comments
Closed

Document pattern for multiple workers via systemd #981

anseljh opened this issue Jul 24, 2018 · 3 comments

Comments

@anseljh
Copy link

anseljh commented Jul 24, 2018

Hello! I'm wondering if there's a solid pattern people are using for starting up multiple workers under systemd. I'm happy to help write up a page for the docs if there is.

@selwin
Copy link
Collaborator

selwin commented Aug 7, 2018

I run multiple RQ instances via systemd template unit files. I have a template named rqworker@.service which allows me to spin up additional workers by calling systemctl start rqworker@one.service, systemctl start rqworker@two.service etc.

All of them can also be reloaded by calling systemctl reload rqworker@*.

More about systemd template unit files here: https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files

If you can, please open a PR for this.

@anseljh
Copy link
Author

anseljh commented Aug 7, 2018

Thanks! That's the solution I ended up on as well, so it's nice to have some validation. I will open a PR, but probably won't get to it for a few weeks.

@anseljh anseljh changed the title Pattern for multiple workers via systemd Document pattern for multiple workers via systemd Aug 7, 2018
@selwin
Copy link
Collaborator

selwin commented Apr 7, 2019

Fixed in 065943f

@selwin selwin closed this as completed Apr 7, 2019
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