Correlation between src-prefetch-count and src-delete-after in dynamic shovel? #8024
Unanswered
rorytorneymf
asked this question in
Questions
Replies: 1 comment 2 replies
-
In order to reduce the redeliveries you should not be using Shovels that self-delete: they will not pay attention to any unacknowledged messages. You can delete Shovels programmatically. You already use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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,
I am using RabbitMQ 3.11.11 / Erlang 25.3
I am creating 1 source queue (
my-src-queue
) and 1 destination queue (my-dst-queue
), and populatingmy-src-queue
with 100000 messages, like this:I am then creating a dynamic shovel to move 1000 messages from
my-src-queue
tomy-dst-queue
:When 1000 messages have been moved and the shovel has been automatically deleted (because of the
src-delete-after
property), I then create the above shovel again to move another 1000 messages and repeat this about 10 times.The problem is I am seeing quite a lot of 'Redelivered' spikes on the charts for
my-src-queue
(around 200 /s), and I don't know why:I repeated the test but set
src-prefetch-count
to10
this time:and I see the 'Redelivered' rate drop to about 2 /s, which is better:
I am wondering if this is the right thing to do, or if there was any advice about what the
src-prefetch-count
should be set to in order to reduce these redeliveries (my shovels are created dynamically, so won't always be shoveling 1000 messages).Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions