[rabbitmq-discuss] Reddit news

Marek Majkowski majek04 at gmail.com
Tue Mar 15 10:27:00 GMT 2011


On Mon, Mar 14, 2011 at 23:09, Marcel Meyer <marcel.meyer at gmail.com> wrote:
> Thanks for the info Marek.
>
> So how does Rabbit 2+ deal with saturation?

Rabbit 2.0+ has few mechanisms to deal with that.

First, it's important to understand that Rabbit tries to
take advantage of available memory. If your messages
fit into the memory - rabbit should be fast.

Once you hit the memory limit (usually set to 0.4 available RAM),
rabbit will start swapping out messages to disk to free memory.

If you have fast enough disk (ie: ssd) that shouldn't slow
down things too much.

But if you're producing messages faster than Rabbit is able
to put them on the disk - Rabbit memory usage will continue to grow.

At some point, to prevent running out of memory rabbit
will use the last measure - it will just stop accepting
new messages (by not doing recv() on connections that
try to do basic.publish).

If that happens, Rabbit should be able to catch the breath,
swap out some remaining messages, and eventually unblock
receiving.

Cheers,
  Marek

> On 3/14/11, Marek Majkowski <majek04 at gmail.com> wrote:
>> From what I understood, they run into a pretty common misunderstanding.
>>
>> Basically the system that consumed messages, for some
>> reason, was too slow. That, obviously, put a lot of stress
>> on RabbitMQ, and as it was before rabbit 2.0, at some point
>> Rabbit just died due to out-of-memory situation.
>>
>> Reddit guys were unhappy to see Rabbit go down, but
>> in fact Rabbit was not the source of their problems.
>> It was just a side-effect of something else misbehaving.
>>
>> Cheers,
>>   Marek
>>
>> On Fri, Mar 11, 2011 at 19:30, Marcel Meyer <marcel.meyer at gmail.com> wrote:
>>> Great! Do you know whether this was documented as some anti-pattern? Is
>>> there more about the specific issues they faced?
>>> On Fri, Mar 11, 2011 at 12:13 PM, Alexis Richardson <alexis at rabbitmq.com>
>>> wrote:
>>>>
>>>> Hi Marcel
>>>>
>>>> Yes, I believe so.   Matthew went to see them.  As I recall the main
>>>> issues were actually not with Rabbit, but some of how they had used
>>>> messaging was worth discussing.
>>>>
>>>> alexis
>>>>
>>>>
>>>> On Fri, Mar 11, 2011 at 5:07 PM, Marcel Meyer <marcel.meyer at gmail.com>
>>>> wrote:
>>>> > Hi there Rabbit Community,
>>>> > I am researching queues and found this thread about reddit's gripes
>>>> > (http://www.reddit.com/tb/c2spc) and noticed that RabbitMQ Support
>>>> > reached
>>>> > out to them.
>>>> > Were there issues resolved? They upgraded ERTS as a "stopgap" fix, but
>>>> > wanted to yank the technology all together. Did they?
>>>> > Regards,
>>>> > Marcel
>>>> > _______________________________________________
>>>> > rabbitmq-discuss mailing list
>>>> > rabbitmq-discuss at lists.rabbitmq.com
>>>> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>> >
>>>> >
>>>
>>>
>>> _______________________________________________
>>> rabbitmq-discuss mailing list
>>> rabbitmq-discuss at lists.rabbitmq.com
>>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>>
>>>
>>
>


More information about the rabbitmq-discuss mailing list