Skip to content

Conversation

@jinyongchoi
Copy link
Contributor

@jinyongchoi jinyongchoi commented Jan 20, 2026

Summary

This commit adds documentation for the new thread.flush_on_shutdown configuration option in the SERVICE section.

When enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs.

Changed files

  • administration/configuring-fluent-bit/yaml/service-section.md
  • administration/configuring-fluent-bit/classic-mode/configuration-file.md

Related PR

fluent/fluent-bit#11337

Summary by CodeRabbit

  • Documentation
    • Added the public configuration key thread.flush_on_shutdown to the Service section documentation. The entry documents accepted values (on/off) and default (off). Check the updated service configuration docs for details.

✏️ Tip: You can customize this high-level summary in your review settings.

@jinyongchoi jinyongchoi requested a review from a team as a code owner January 20, 2026 05:21
Copilot AI review requested due to automatic review settings January 20, 2026 05:21
@jinyongchoi jinyongchoi requested a review from a team as a code owner January 20, 2026 05:21
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 20, 2026

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

Added documentation for a new Service configuration key thread.flush_on_shutdown in two docs. It documents enabling flushing of threaded input ring buffers during graceful shutdown to prevent data loss. Accepted values: on/off. Default: off.

Changes

Cohort / File(s) Summary
Service Section Documentation
administration/configuring-fluent-bit/classic-mode/configuration-file.md, administration/configuring-fluent-bit/yaml/service-section.md
Added thread.flush_on_shutdown configuration key entry describing graceful shutdown behavior for threaded input ring buffers (values: on/off, default: off).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • alexakreizinger
  • cosmo0920

Poem

🐇 I hopped through docs with pen so light,
A flush option added for shutdowns at night.
Rings unwind softly, no bytes gone wrong,
I thump my foot and sing a tiny song.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'service: add thread.flush_on_shutdown option' clearly and concisely describes the main change: adding a new configuration option to the service section.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for the new thread.flush_on_shutdown configuration option in the SERVICE section of Fluent Bit. This option controls whether the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs.

Changes:

  • Added documentation for the thread.flush_on_shutdown option with description, accepted values, and default value
  • Documentation updated in both YAML and classic mode configuration files for consistency

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
administration/configuring-fluent-bit/yaml/service-section.md Added thread.flush_on_shutdown option to the service section table with description, accepted values, and default value
administration/configuring-fluent-bit/classic-mode/configuration-file.md Added thread.flush_on_shutdown option to the Service section table with description, allowed values, and default value

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| --- | ----------- | ------------- |
| `flush` | Sets the flush time in `seconds.nanoseconds`. The engine loop uses a flush timeout to define when to flush the records ingested by input plugins through the defined output plugins. | `1` |
| `grace` | Sets the grace time in `seconds` as an integer value. The engine loop uses a grace timeout to define the wait time on exit. | `5` |
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Accepted values: `off` or `on`. | `off` |
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The terminology and order used here ("Accepted values: off or on") is inconsistent with line 10 which uses "Possible values: yes, no, on, and off." For consistency within this file, consider using "Possible values:" instead of "Accepted values:" and list the values in a consistent order (for boolean options, typically on is listed before off).

Suggested change
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Accepted values: `off` or `on`. | `off` |
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Possible values: `on` and `off`. | `off` |

Copilot uses AI. Check for mistakes.
| --------------- | ------------- | ------------- |
| `flush` | Set the flush time in `seconds.nanoseconds`. The engine loop uses a Flush timeout to define when it's required to flush the records ingested by input plugins through the defined output plugins. | `1` |
| `grace` | Set the grace time in `seconds` as an integer value. The engine loop uses a grace timeout to define wait time on exit. | `5` |
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Allowed values are: `on` and `off`. | `off` |
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "Allowed values are: on and off" is inconsistent with other similar entries in this file. Line 25 uses "Allowed values are: yes, no, on, and off" with commas to separate multiple values. However, this line uses "and" without commas for just two values. While grammatically both are correct, for consistency with similar entries (like daemon on line 25), consider using "on or off" or "on, off" format to align with how the table presents boolean options elsewhere in the documentation.

Suggested change
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Allowed values are: `on` and `off`. | `off` |
| `thread.flush_on_shutdown` | If enabled, the engine waits for threaded input ring buffers to flush during graceful shutdown, preventing data loss from threaded inputs. Allowed values are: `on` or `off`. | `off` |

Copilot uses AI. Check for mistakes.
This commit adds documentation for the new `thread.flush_on_shutdown`
configuration option in the SERVICE section.

When enabled, the engine waits for threaded input ring buffers to flush
during graceful shutdown, preventing data loss from threaded inputs.

refs: fluent/fluent-bit#11337

Signed-off-by: jinyong.choi <inimax801@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant