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)
10 upvotes·31.6K views
Replies (2)

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
6 upvotes·4 comments·8.7K views
mwlazlo885
mwlazlo885
·
February 16th 2024 at 6:56PM

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

·
Reply
sutra001 ofc
sutra001 ofc
·
May 16th 2024 at 3:49AM

https://sutra69.biz saya main slot online di sini dan menangkan ratusan juta rupiah

·
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
Tải sunwin
Tải sunwin
·
June 10th 2024 at 12:41AM

Sunwin Club là một trong những cổng game cá cược trực tuyến hàng đầu tại Việt Nam, uy tín hơn 10 năm về nạp rút tiền với tốc độ nhanh. Được cộng đồng game bài đánh giá là cổng game đổi thưởng số 1 đáng chơi nhất. Với sự cạnh tranh hiện nay nhiều game bài online ra đời như go88, hit club, B52, rikvip, 789club… Cổng game bài đã thay đổi về sự uy tín đầu tư tập trung vào cổng giao dịch nạp rút nhanh và miễn phí giao dịch cho người chơi. Tải game sunwin uy tín tại: https:// taisunwin.group

Thông tin liên hệ:

Địa chỉ: 102 Trương Công Định, Phường 14, Tân Bình, Thành phố Hồ Chí Minh, Việt Nam

Hotline: 0712546214

Email: support@taisunwin.group

Website: https://taisunwin.group/

·
Reply
4 upvotes·1 comment·11.3K views
sutra001 ofc
sutra001 ofc
·
May 16th 2024 at 3:49AM

https://sutra69.biz saya main slot online di sini dan menangkan ratusan juta rupiah

·
Reply
Avatar of mwlazlo885