Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Support for mirrored queues (x-ha-policy) #399

Closed
addisonj opened this issue Oct 23, 2012 · 2 comments
Closed

Support for mirrored queues (x-ha-policy) #399

addisonj opened this issue Oct 23, 2012 · 2 comments

Comments

@addisonj
Copy link

In trying to use sensu with a rabbitmq cluster, one of the missing pieces is a support for mirrored queues.

http://www.rabbitmq.com/ha.html outlines using x-ha-policy.

The ruby AMQP module takes the following option when defining a queue:

:arguments => { "x-ha-policy" => "all" }

Implementation should be pretty trivial. Just curious if anything is planned or some direction on how the config should injected.

@portertech
Copy link
Contributor

As Sensu data is time sensitive, the data in queues isn't necessarily worth mirroring, so I'm currently evaluating a simpler or "poor-mans" HA RabbitMQ setup w/ HAProxy. If the primary RabbitMQ backend becomes unavailable, let all TCP connections drop, causing Sensu components to go into reconnecting state, then switch to the backup RabbitMQ backend. Figuring out if something like this is possible and perhaps a good solution.

@portertech
Copy link
Contributor

Using a standard RabbitMQ cluster behind HAProxy is currently the way to go, http://www.rabbitmq.com/clustering.html

Mirrored queues are not required, nor recommended.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants