<div dir="ltr">Hi everybody,<br><br>I'm testing RabbitMQ and can't get it to work properly! <br><br>So that's what I have: <br><br>two c1.xlarge nodes running on EC2. One Ram node and one Disk node. <br><br>I created a test queue. setted up it as a HA mirrored queue like this:<br><br><blockquote style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">rabbitmqctl set_policy -p / HA "^ha.*" '{"ha-mode":"all", "ha-sync-mode":"automatic"}'<br></blockquote><br>Then ran this command to see if everything worked well:<br><br><blockquote>[root@rabbita ~]$ rabbitmqctl list_queues name messages pid slave_pids synchronised_slave_pids<br>Listing queues ...<br>ha.api.postworker&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; &lt;'rabbit@rabbit-master'.1.853.0&gt;&nbsp;&nbsp;&nbsp; [&lt;rabbit@rabbita.2.1122.0&gt;]&nbsp;&nbsp;&nbsp; [&lt;rabbit@rabbita.2.1122.0&gt;]<br></blockquote><br>After this I was expecting that all the messages that will get to the queue will be automatically synchronised (mirrored) between all nodes. In my case there is only one additional node. So I would expect that even if one node goes down for some reason, another node would have this queue defined and all the messages will still be there. NOTE, I was sending messages with delivery_mode set to 2. Meaning they are durable and will be saved to disk!!!!<br><br>Than the actual test:<br><br>1 producer - was sending messages messages at a rate about 2000 msgs/s. <br>Each message is about 1kB long. <br><br>Saw that Rabbit setted "Flow control" periodically.<br><br>I tried to fill up the queue up to some point. So at the time when I added consumers, I had about 200 k msgs in the queue<br><br>had 6 consumers:<br><br>Each where using basic_consume() <br>with prefetch count = 3000<br><br>There where about 4k unacknowledged messages&nbsp; constantly.<br><br>THEN BOOM!<br><br>RAM node went down and ALL THE MESSAGES and even Queue where deleted, they just disappeared. <br>here is the screenshot from UI:<br><br>You can see that there where 150K messages and then suddenly, 0. + all consumers are gone, because they can't connect to the Q.<br>Also NOTE that even that Disk node&nbsp; (rabbita) is Red, it will be functioning after crash, but the node above, RAM node, will crash.<br><br><p style="text-align: center; clear: both;" class="separator"><a style="clear: left; margin-bottom: 1em; float: left; margin-right: 1em;" href="https://lh6.googleusercontent.com/-z0jfOUTy5eA/UnpsY_34yHI/AAAAAAAAABA/EJQLb5ou7wA/s1600/rabbitmq.png" imageanchor="1"><img src="https://lh6.googleusercontent.com/-z0jfOUTy5eA/UnpsY_34yHI/AAAAAAAAABA/EJQLb5ou7wA/s1600/rabbitmq.png" style="" border="0"></a></p></div>