Skip to content

otel: fix multi-worker window and fetch-limit calculation#5138

Merged
HofiOne merged 3 commits intosyslog-ng:masterfrom
HofiOne:fix-otlp-multiwork-iw
Sep 27, 2024
Merged

otel: fix multi-worker window and fetch-limit calculation#5138
HofiOne merged 3 commits intosyslog-ng:masterfrom
HofiOne:fix-otlp-multiwork-iw

Conversation

@HofiOne
Copy link
Collaborator

@HofiOne HofiOne commented Sep 26, 2024

init_window_size was always 0 when workers() was set to >1, because it was placed too early in the init() method: -1 / num_workers .

Backport of #310 by @MrAnno

This also fixes opentelemetry() and axosyslog-otlp() when workers() > 1,
because originally init_window_size was always set to 0
(-1 / num_workers).

Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
@HofiOne HofiOne merged commit e557f3d into syslog-ng:master Sep 27, 2024
@HofiOne HofiOne deleted the fix-otlp-multiwork-iw branch September 27, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants