Rq: Document pattern for multiple workers via systemd

Created on 24 Jul 2018  路  3Comments  路  Source: rq/rq

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.

Most helpful comment

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.

All 3 comments

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.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guhcampos picture guhcampos  路  8Comments

yishenggudou picture yishenggudou  路  8Comments

jkryanchou picture jkryanchou  路  7Comments

mitakuye picture mitakuye  路  7Comments

willvousden picture willvousden  路  7Comments