[Koha-bugs] [Bug 32481] Rabbit times out when too many jobs are queued and the response takes too long
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 10 14:31:49 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32481
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #144809|0 |1
is obsolete| |
Attachment #145082|0 |1
is obsolete| |
Attachment #145134|0 |1
is obsolete| |
--- Comment #34 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 145173
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145173&action=edit
Bug 32481: Limit prefetch size for background jobs worker
This patch adds a prefetch size of 1 to the background jobs worker,
so that it fetches 1 message at a time. Without this change,
the RabbitMQ connection timeout when too many messages for slow tasks
are fetched at the same time.
To test:
0. Apply patch
1. Run background worker
2. Rapidly enqueue multiple jobs that in total will take longer
than 30 minutes to process
Bug 32481: Use correct prefetch syntax for RabbitMQ
According to https://www.rabbitmq.com/stomp.html the header to
use for managing the prefetch is "prefetch-count".
You can verify the number of delivered and unacknowledged messages
on a channel on a connection by running "rabbitmqctl list_channels"
on the RabbitMQ host. This will tell you how many messages have been
delivered and are awaiting acknowledgement
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list