Connecting multiple rabbitmq host from Nameko


#1

From @singhmanish09 on Tue Dec 19 2017 04:57:52 GMT+0000 (UTC)

What is the mechanism through which nameko can connect to multiple rabbitmq host configured in mirrored mode so that HA can be achieved using it.

Copied from original issue: https://github.com/nameko/nameko/issues/498


#2

From @mattbennett on Wed Dec 20 2017 12:48:47 GMT+0000 (UTC)

Most people put a load-balancer in front of the RabbitMQ nodes. Another approach is to pass a semicolon delimited string with the addresses of each node as the AMQP_URI, e.g.

AMQP_URI: pyamqp://guest:guest@rabbitmq1:5672/;pyamqp://guest:guest@rabbitmq2:5672/

This passes through to Kombu, which will round-robin between URIs when it can’t connect.

HA strategies in general have been covered on the mailing list: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/nameko-dev/HA|sort:date/nameko-dev/DpR8LeNUod0/uOethL81AgAJ