<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am new to the list and RabbitMQ in general, so I hope this is not a stupid question, but I have seen some behavior that is strange to me when using the RabbitMQ shovel plugin. I am using RabbitMQ v 2.7.1 running on Centos 6.0. I have
three machines in my setup. Machines A and B are both clustered together. Machine C is not part of the cluster. It has the shovel plugin installed. The plugin is set up to shovel messages from a durable queue on Machine C to a durable queue on Machine
A. In case it helps, my /etc/rabbitmq/rabbitmq.conf file looks like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[{rabbitmq_shovel,<o:p></o:p></p>
<p class="MsoNormal"> [{shovels,<o:p></o:p></p>
<p class="MsoNormal"> [{myShovel,<o:p></o:p></p>
<p class="MsoNormal"> [{sources, [{broker,"amqp://MachineC"}]},<o:p></o:p></p>
<p class="MsoNormal"> {destinations, [{broker, "amqp://MachineA"}]},<o:p></o:p></p>
<p class="MsoNormal"> {queue, <<"myQueue">>},<o:p></o:p></p>
<p class="MsoNormal"> {ack_mode, on_confirm},<o:p></o:p></p>
<p class="MsoNormal"> {publish_properties, [{delivery_mode, 2}]},<o:p></o:p></p>
<p class="MsoNormal"> {reconnect_delay, 5}<o:p></o:p></p>
<p class="MsoNormal"> ]<o:p></o:p></p>
<p class="MsoNormal"> }]<o:p></o:p></p>
<p class="MsoNormal"> }]<o:p></o:p></p>
<p class="MsoNormal">}].<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With this configuration, everything seems to work fine. When I send messages to the queue on Machine C, they are shoveled automatically out to A.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So here is the weird behavior I mentioned earlier… If I shut down the RabbitMQ service on Machine A, messages stack up in the durable queue on Machine C. This is expected since Machine A is down. However, if I then restart the RabbitMQ
service on Machine C, all of the messages waiting in the durable queue get nuked.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Has anyone else seen this behavior? Do I have a setting wrong or is there something else I can change so that this doesn’t happen?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance for your help!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Sean<o:p></o:p></p>
</div>
<br clear=all>
</body>
</html>