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
Systemd notify and watchdog support for sidekiqswarm #4511
Comments
Unfortunately there are some serious impl issues. The notify functionality doesn't map well to a parent process with N child processes.
I'll do some googling and see if anyone has thought about or worked through this issue. |
I suspect because the process model is completely different I will need to rework the systemd integration to be completely different for the |
…binaries, like sidekiqswarm or a custom Sidekiq launcher, #4511
Sidekiq swarm may be replaced by systemd template services, letting systemd run many sidekiq instances on a single host, with
if you need pid files. Then you may start as many sidekiq instances as you want e.g. with a simple bash script:
Also a custom systemd target may be created:
and add
That will enable stopping or starting all sidekiq processes with a single command |
@misdoro +1 That's pretty much what we're using, but instead of just using sequential ids for each worker, you can even assign a worker per queue (although this might not be the most flexible solution, depending on your needs)
|
@mperham Could you please clarify what this means in Ent-Changes? |
My comment was poor, partially because I forgot the work I had done. 😁 Boot notification and parent watchdog were implemented, child watchdog was not implemented because systemd can't map one watchdog onto N child processes. |
Ok thanks, I guess that's good enough! |
Changes that were made for #4488 don't work for sidekiqswarm. I'm sure lots of enterprise customers will benefit from having the same neat integration when running multiple processes.
The text was updated successfully, but these errors were encountered: