Consumers disconnect after long idle from RabbitMQ queue #1418
Unanswered
stefanofal-altilia
asked this question in
Q&A
Replies: 1 comment 16 replies
-
Hello! I really need to know what RabbitMQ logs in your environment. Please attach the logs (or add them to your repo), even if you don't think they contain anything relevant. Thanks. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my company we are currently facing a strange behavour using rabbitMQ. One of our microservices hosted in a Kubernetes Cluster is built in Python (the others in Java and they don't show this problem) and communicates using Pika implementation for RabbitMQ.
During the week the microservice works just fine, in the weekend it is not used and still up and running. On monday trying to publish a message on this microservice queue results in them remaining unacked because all the consumers have disconnected. Looking in the code logs, there is absolutely nothing: no error, no exception thrown, nothing at all. The service remains idle without noticing it is disconnected from the queue.
In the first implementation we had a BlockingConnection, but referencing this issue #877 and suspecting some kind of idle termination, we moved to SelectConnection using ioloops. The heartbeat is configured with standard 60s with broker negotation. I assume it is not a problem in the rabbitMQ broker because every other microservice in Java is working just fine and the connection keeps alive for weeks.
I could not find anything relevant on the logs of rabbitMQ either because of all the other microservices' noise or due to the behavour being silent, maybe.
About our configuration:
Pika version 1.2.0
Python 3.8.3
RabbitMQ 3.8.18
Erlang 23.3.4.4
The reproducible code can be found here: github link to repo
This is a crosspost of this stackoverflow question following @lukebakken kind suggestion.
Current logs for the three RabbitMQ instances running in the Cluster.
1.txt
2.txt
3.txt
Beta Was this translation helpful? Give feedback.
All reactions