[rabbitmq-discuss] rabbitmq webstomp ha-mode
simon at rabbitmq.com
Wed Mar 19 13:14:51 GMT 2014
On 19/03/14 11:04, Steve Flitcroft wrote:
> Having trouble getting the queues that are created via sockjs & webstomp
> being replicated across nodes.
> I have a policy set for any queues that start with amq to be replicated.
> You can see this here
> the amq.gen queue created by webstomp does not replicate to the other
> node, the queue I created called amqsteve does.
The amq.gen queue is declared as exclusive. From
Exclusive queues will be deleted when the connection that declared
them is closed. For this reason, it is not useful for an exclusive
queue to be mirrored (or durable for that matter) since when the node
hosting it goes down, the connection will close and the queue will
need to be deleted anyway.
For this reason, exclusive queues are never mirrored (even if they
match a policy stating that they should be). They are also never
durable (even if declared as such).
> The result of this is that any non websocket browsers have to be routed
> to exactly the same node otherwise they get a 404 on the xhr_send method
> and lose connection.
Uh, that's not the case; you can connect to any node to publish to a
non-mirrored queue, it just gets routed inside the cluster.
More information about the rabbitmq-discuss