boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
174 stars 155 forks source link

RabbitMQ instances are loosing connection with worker server after particular time period though the service instances are up and running on worker. Is there any time limit for RabbitMQ server connections hosted on AmazonMQ? #711

Closed KPrathapReddy141 closed 5 months ago

KPrathapReddy141 commented 9 months ago

Subject of the issue

I have worker server which is taking messages from rabbitMQ and process those. I am facing time limit issue with the services instances connected with rabbitMQ. as I mentioned though the service instances are up and running the connection is loosing with rabbitMq.

Your environment

This is my service file

[Unit] Description="Pdf_Worker instance #%i" worker@.service units PartOf=pdf_workers.target

[Service] Type=simple ExecStart=/usr/bin/php /var/worker/pdf-worker/src/pdf_worker.php %i Restart=always

This My target file.

[Unit] Description=Pdf_Workers Wants=pdf_worker@1.service pdf_worker@2.service pdf_worker@3.service

[Install] WantedBy=multi-user.target