aio-pika icon indicating copy to clipboard operation
aio-pika copied to clipboard

connection pool with cluster

Open rob-blackbourn opened this issue 4 years ago • 1 comments

I'm connecting to an HA RabbitMQ cluster.

My understanding is that a RabbitMQ cluster has a single master node with the remaining as slaves. Communication to a slave gets forwarded to the master and back to the slave and onto the client.

I would like to connect to the cluster with the ip addresses of all the nodes, route traffic through the primary, and be redirected to the new primary in event of failure.

Can this be achieved?

I can see code for heartbeats, so I'm guessing I can get informed if a node becomes unresponsive. When I connect, is there an indication of whether a node is the master or a slave? Are there callbacks for the change of role?

Thanks,

Rob

rob-blackbourn avatar Sep 07 '20 16:09 rob-blackbourn

see #104

tonal avatar Jan 23 '21 10:01 tonal