Needs advice
on
RabbitMQRabbitMQSupervisordSupervisord
and
SymfonySymfony

Hello, I'm using Supervisord for separate process manager/consumer with RabbitMQ and Symfony but it's not working properly, it disconnects after a couple of hours.. and for a workaround, I'm using a restart job on Jenkins (as in the linked issue in GitHub) but tbh I would like to have a clean stack.. if anyone knows a better alternative than supervisord it will be awesome..

Many thanks!

READ LESS
Process stops processing messages after certain amount of time · Issue #28 · ricbra/rabbitmq-cli-consumer · GitHub (github.com)
30 upvotes·88.9K views
Replies (2)
Medical at Physiotherapy Clinic·
Recommends
on
RabbitMQ

SupervisorD manages RabbitMQ consumers in Symfony, but it disconnects after a few hours. As a workaround, I restart the job via Jenkins. I’d prefer a cleaner alternative to SupervisorD if anyone has any suggestions for long-running processes, I’d love to hear your suggestions.

READ MORE
3 upvotes·1 comment·6.7K views
Seo solutions
Seo solutions
·
August 12th 2025 at 10:15AM

It sounds like SupervisorD might not be the best fit for managing long-running RabbitMQ consumers, especially if you’re facing disconnects after several hours. You might want to consider using systemd for better process supervision—it offers more robust restart policies and better resource management. Alternatively, tools like PM2 (popular in Node.js but also usable for other processes) or Docker containers with restart policies can help keep your consumers alive reliably.

·
Reply

I've had good experiences moving from Supervisord to using systemd for managing processes, especially for setups involving RabbitMQ and Symfony. Systemd not only integrates well with the system, offering better control and management, but it also simplifies logging through journalctl and handles automatic restarts seamlessly.

Here's what I did to make the switch: - Craft a Service File: I wrote a .service file in /etc/systemd/system/ to describe my service. It includes details on how to start and stop the process, among other things. - Set Up Service Behavior: Inside this file, I specified commands like ExecStart for launching my process, Restart to ensure it always restarts after failure, and set the User to define which user runs the process. - Enable and Launch the Service: With systemctl enable my-service.service, I made sure my service would start on boot, and systemctl start my-service.service got it running right away. - Manage and Log: Whenever I needed to check on things, journalctl was there for logs, and systemctl helped me manage the service (like checking its status or restarting it). - Switching to systemd resolved the disconnection issues I faced without needing any workarounds like restartingI've had good experiences moving from Supervisord to using systemd for managing processes, especially for setups involving RabbitMQ and Symfony. Systemd not only integrates well with the system, offering better control and management, but it also simplifies logging through journalctl and handles automatic restarts seamlessly.

Here's what I did to make the switch: - Craft a Service File: I wrote a .service file in /etc/systemd/system/ to describe my service. It includes details on how to start and stop the process, among other things. - Set Up Service Behavior: Inside this file, I specified commands like ExecStart for launching my process, Restart to ensure it always restarts after failure, and set the User to define which user runs the process. - Enable and Launch the Service: With systemctl enable my-service.service, I made sure my service would start on boot, and systemctl start my-service.service got it running right away. - Manage and Log: Whenever I needed to check on things, journalctl was there for logs, and systemctl helped me manage the service (like checking its status or restarting it). - Switching to systemd resolved the disconnection issues I faced without needing any workarounds like restart jobs. It felt like a cleaner, more reliable approach.

READ MORE
16 upvotes·12 comments·28.6K views
mwlazlo885
mwlazlo885
·
February 16th 2024 at 6:56PM

Many thanks for the recommendation! I will give it a try, thanks : )

·
Reply
Vid Matehd
Vid Matehd
·
November 3rd 2024 at 7:51AM

Download VidMate App (APK) latest version 2025 in Official Website. VidMate App is the best video downloader for YT, Facebook and all other movie & video platforms.

https://vidmatehd.net/

·
Reply
bmspower websitedesigncompany
bmspower websitedesigncompany
·
June 4th 2024 at 7:43AM

Messenger provides a message bus with the ability to send messages and then handle them immediately in your application or to be handled later.

·
Reply
Ehsaas Rashan
Ehsaas Rashan
·
February 21st 2025 at 12:00PM

http://ehsaasreashen8171.click/

·
Reply
Synergy Physiotherapyclinic
Synergy Physiotherapyclinic
·
April 7th 2025 at 1:28PM

Switching from Supervisord to systemd improved stability and control in my setup. Creating a custom service file, enabling auto-restarts, and using journalctl for logs made process management much smoother.

·
Reply
Avatar of Synergy Physiotherapyclinic

Synergy Physiotherapyclinic

Medical at Physiotherapy Clinic