Closed awoimbee closed 11 months ago
@awoimbee if I guess correctly your HA cluater topology and connection endpoint is a DNS records with same name then this article is a possible solution for you.
Hi, everything is inside a kubernetes cluster, I have a service (a DNS record) that points to rabbitmq pods. The rabbitmq containers are shutdown gracefully. I don't think happy_eyeballs will help, my issue is not with the reconnect but with the disconnects.
Hi, I tried making a detailed issue but I don't know my way around aio-pika and aiormq enough, so I'll make it simple.
setup I run rabbitmq in a cluster and I use quorum queues. One rabbit instance might become unavailable at any time. I expect
RobustConnection
to handle reconnects to any rabbit replicas automagically (I'm setup like the exampleAsynchronous message processing
).Seems like aiormq keeps a persistent connection open with a single rabbit replica. When this replica goes down I get these issues:
Task was destroyed but it is pending!
(#432) seem to happen when reading a message during rmq shutdown (it happens beforeUnexpected connection close
is printed).DeliveryError
fromexchange.publish(message, MY_ROUTING_KEY)
, seems to happen in tandem withTask was destroyed but it is pending!
(beforeUnexpected connection close
).Is there a magic bullet to solve all of this ? Otherwise, how can I help solve these issues ?