I noticed the lazy queue and test it, which is a great function, the speed is stable now.
But I found a problem, when I just only publish message to lazy queue, the publish speed can up to 30k/s, the disk write is 30k/s too. After a while I started the consumer, but the publish and consume speeds down to 15k/s, and the disk read is 15k/s, disk write is 15k/s too. It looks like the performance is limited by disk.
I use iostat to watch the rabbitmq server process, the io wait is %0, which shows that there is no any io pressure on my machine.
How to improve the disk read and disk write speed of the rabbitmq server? And the batch read 16384 can be changed?
thx!