Commit 0e15cc1
committed
input: add thread.ring_buffer.retry_limit option
When a threaded input plugin's ring buffer is full, the input thread
retries writing to the buffer before dropping data. Previously, this
retry limit was hardcoded to 10 (1 second total with 100ms sleep
between retries).
This patch makes the retry limit configurable via the new
'thread.ring_buffer.retry_limit' option. The default value remains 10
for backward compatibility. Increasing this value allows the system
to handle temporary backpressure situations without dropping data.
Fixes #11393
Signed-off-by: jinyong.choi <[email protected]>1 parent 1dcc0b7 commit 0e15cc1
File tree
3 files changed
+26
-4
lines changed- include/fluent-bit
- src
3 files changed
+26
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| 386 | + | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
138 | 144 | | |
139 | 145 | | |
140 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
141 | 153 | | |
142 | 154 | | |
143 | 155 | | |
| |||
420 | 432 | | |
421 | 433 | | |
422 | 434 | | |
423 | | - | |
| 435 | + | |
424 | 436 | | |
425 | 437 | | |
| 438 | + | |
426 | 439 | | |
427 | 440 | | |
428 | 441 | | |
| |||
759 | 772 | | |
760 | 773 | | |
761 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
762 | 784 | | |
763 | 785 | | |
764 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2945 | 2945 | | |
2946 | 2946 | | |
2947 | 2947 | | |
2948 | | - | |
2949 | 2948 | | |
2950 | 2949 | | |
2951 | 2950 | | |
| |||
2995 | 2994 | | |
2996 | 2995 | | |
2997 | 2996 | | |
2998 | | - | |
| 2997 | + | |
2999 | 2998 | | |
3000 | | - | |
| 2999 | + | |
3001 | 3000 | | |
3002 | 3001 | | |
3003 | 3002 | | |
| |||
0 commit comments