Replies: 2 comments 3 replies
-
Please refrain from pasting large amounts of text into a discussion or comment on GitHub. I have edited your post to use
Change the Please export the definitions from both nodes so we know how you're setting up Federation. Pretty-print the json then attach the files to your response. Thank you. |
Beta Was this translation helpful? Give feedback.
-
This is what publisher confirmations are for - https://www.rabbitmq.com/tutorials/tutorial-seven-java.html If your publisher is not using them, or using the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
We have either a problem or misunderstanding with federation plugin. Lemme explain the situation:
I've made two nodes with identical configuration (8gb, 8core), one node has only producers, second one has only consumers. And second node collects messages from the first one over federation. Both nodes are running v3.11.14, but I ran these tests on 3.12.6 and results are the same. I tried running performance testing over these rabbits, here are the logs:
Producer:
Consumer:
So basically consumer reads messages slower than they are published which is not a problem by itself cause there could be several bottle necks.
But from my logic if message is published but not delivered - it should be visible somewhere. However, these messages are basically gone. Screenshots of management pages of both nodes:
Producer: https://imgur.com/a/FoW2LWY
Consumer: https://imgur.com/a/nV2zzU8
And finally, the problem I end up having is growing memory on the consumer node, which is kinda visible on the second screenshot, while there is no visible reason for it to grow. On the screenshot it's about 800mb, but we have it in production and we frequently go out of memory with consumer rabbits with zero messages in unacked state.
So, could you please help me, is there any way to monitor process of the federation? I mean it's obvious memory growth is exactly these messages, but from any kind of monitoring or metrics these messages are basically invisible. From the side view it looks like unreasonable growth of consumed memory - publish and consume rates are equal, no messages in queues, but publish rate on publish node is twice as high as consume rate on consumer node, and looks like messages disappear.
And a side question. I tested both of these nodes locally and they both are able to handle publish&consume rate about 50k/s without federation. Why does federation works THAT slow?
Beta Was this translation helpful? Give feedback.
All reactions