[rabbitmq-discuss] ulimit and cgroup
mklishin at gopivotal.com
Thu Mar 13 08:33:36 GMT 2014
On 13 Mar 2014, at 07:58, ratheesh kannoth <ratheesh.ksz at gmail.com> wrote:
> Suppose i restrict REZ memory and file size etc ( system resources
> ) using ulimit and cgroup, what will be the behaviour of rabbitMQ. ?
> Suppose a lot of messages gets queued and writing to disk ; if i have
> a limit on the file size. ??
It depends on message size but once you cross a certain threshold, RabbitMQ
will try to move messages to disk. There should be no giant files, though, on disk
message store will split them into multiple smaller files (16 MB by default, AFAIR).
There is a fixed (a few dozens of bytes) RAM cost per message until you use a
custom queue index plugin, such as rabbitmq-toke .
If RabbitMQ cannot allocate memory or write to a file, of course, there is little it can do, so be
careful about setting RSS and file size limit. It’s a good idea to adjust RabbitMQ VM high memory watermark
to be lower than the OS limit you use.
Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss