Skip to content

input: add pause/resume callbacks #10616

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Jul 18, 2025

This patch implements the missing pause and resume callbacks for in_tcp, in_http and in_opentelemetry plugins. When the plugin is paused, all active client connections are forcefully closed, and new incoming connections are rejected. The
plugin tracks its paused state to ensure correct behavior until it is resumed.


Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

edsiper added 3 commits July 18, 2025 11:13
Previously, the in_tcp input plugin did not respond to engine pause or resume signals—meaning
it continued to accept and handle connections even when the engine had paused the plugin (e.g: it
should stop ingesting data).

This patch implements the missing pause and resume callbacks. When the plugin is paused, all
active client connections are forcefully closed, and new incoming connections are rejected. The
plugin tracks its paused state to ensure correct behavior until it is resumed.

Signed-off-by: Eduardo Silva <[email protected]>
Previously, the in_http input plugin did not respond to engine pause or resume signals—meaning
it continued to accept and handle connections even when the engine had paused the plugin (e.g: it
should stop ingesting data).

This patch implements the missing pause and resume callbacks. When the plugin is paused, all
active client connections are forcefully closed, and new incoming connections are rejected. The
plugin tracks its paused state to ensure correct behavior until it is resumed.

Signed-off-by: Eduardo Silva <[email protected]>
Previously, the in_opentelemetry input plugin did not respond to engine pause or resume
signals—meaning it continued to accept and handle connections even when the engine had
paused the plugin (e.g: it should stop ingesting data).

This patch implements the missing pause and resume callbacks. When the plugin is paused, all
active client connections are forcefully closed, and new incoming connections are rejected. The
plugin tracks its paused state to ensure correct behavior until it is resumed.

Signed-off-by: Eduardo Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant