[rabbitmq-discuss] Message to disk?
matthew at rabbitmq.com
Tue May 24 11:18:42 BST 2011
On Tue, May 24, 2011 at 05:57:51PM +0800, yaohui wrote:
> I found that there are files .rdq in dir msg_store_transient even if below memory pressure.
> Do messages already be written to disk?
> These files means what？
If Rabbit only started to write messages to disk when it ran out of
memory then you'd promptly find Rabbit sitting there for some time
thrashing the disk, whilst nothing else could occur.
Consequently, Rabbit can decide to write messages out to disk fairly
early on to ensure that when, some time in the future, there is no RAM
left, Rabbit has already written to disk most of its messages to disk,
thus there is little to no interruption of service.
Of course, as discussed on this list recently, clients can easily
publish at such a rate as to rapidly overwhelm Rabbit: ultimately, if a
queue has no or few consumers that can operate at the rate at which
messages are being published then you will end up being bound by disk
Anyway, the rdq files are some of the files in which Rabbit can store
More information about the rabbitmq-discuss