-
Notifications
You must be signed in to change notification settings - Fork 4k
Make consumer-level prefetch-like limit configurable for cases with QoS prefetch > 200 #11822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
b5ea618
708d071
e3ce46b
dcaeb67
45c4aa6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ | |
|
|
||
| -define(QUEUE, lqueue). | ||
|
|
||
| -define(UNSENT_MESSAGE_LIMIT, 200). | ||
| -define(UNSENT_MESSAGE_LIMIT, persistent_term:get(unsent_message_limit)). | ||
|
|
||
| %% Utilisation average calculations are all in μs. | ||
| -define(USE_AVG_HALF_LIFE, 1000000.0). | ||
|
|
@@ -168,6 +168,8 @@ add(ChPid, CTag, NoAck, LimiterPid, LimiterActive, | |
| delivery_count = InitialDeliveryCount}}} | ||
| end, | ||
| update_ch_record(C), | ||
| persistent_term:put(unsent_message_limit, | ||
| application:get_env(rabbit, classic_queue_consumer_unsent_message_limit, 200)), | ||
|
||
| Consumer = #consumer{tag = CTag, | ||
| ack_required = not NoAck, | ||
| prefetch = parse_prefetch_count(ModeOrPrefetch), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.