-
Describe the bugDuring the migration from version 3.13.7 to 4.0.5, we faced an issue that our queues with classic mirroring were no longer supported, so we recreated queues as quorum queues. Once we made this switch, our previous cluster setup, consisting of 3 nodes with 4 GB of disk space in K8s, started experiencing problems with the constant growth of the disk space used. At first, we increased it to 6 GB, but we see that it continues to constantly grow. What we've noticed is that the segment's folders are quite strange and they contain old data. This could be related to the discussion #12147 Current cluster state: Erlang 26.2.5 Reproduction steps
Example of the folder with segment file: Expected behaviorDisk space is used normally and after message acknowledgment, the messages are deleted from segments/ old segments are deleted/ truncated. Additional contextOur current filesystem looks like this: we've noticed that config is not changing $ ls -la 2F_PUB7VTUEUDLK4K8 RabbitMQ config: rabbitmq.conf: |- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What you are describing seems completely normal. QQ log truncation isn't something that happens all the time, it may leave data behind for quite some time before it is deleted. 6GB is much to small a disk for modern RabbitMQ with quorum queues. I would at least 10x that. See the documentation for more details: https://www.rabbitmq.com/docs/quorum-queue |
Beta Was this translation helpful? Give feedback.
-
@alexff91 in the quorum queue guide, there is a dedicated section that demonstrates exactly the same "seesaw pattern" and explains why specifically the QQ on disk footprint follows it. Furthermore, the Deployment Guidelines mentions that you probably want to use disk several times larger than the amount of memory a node is allowed to use. In your case, the ratio is close to 1:1. #13103 demonstrates something completely different, per reporter's own words the leader node behaves exactly as expected, their question is about why the nodes hosting the followers have a different behavior. #12147 can be relevant or not, the solution suggested there (which is also documented) won't help if you barely have enough disk space for a couple of segment files with all defaults. |
Beta Was this translation helpful? Give feedback.
What you are describing seems completely normal. QQ log truncation isn't something that happens all the time, it may leave data behind for quite some time before it is deleted. 6GB is much to small a disk for modern RabbitMQ with quorum queues. I would at least 10x that.
See the documentation for more details: https://www.rabbitmq.com/docs/quorum-queue