Skip to content

feat(clp-package)!: Increase buffer_flush_threshold default from 256MiB to 4GiB.#1965

Merged
LinZhihao-723 merged 4 commits into
y-scope:mainfrom
jonathan-imanu:update_buffer_flush_threshold
Feb 10, 2026
Merged

feat(clp-package)!: Increase buffer_flush_threshold default from 256MiB to 4GiB.#1965
LinZhihao-723 merged 4 commits into
y-scope:mainfrom
jonathan-imanu:update_buffer_flush_threshold

Conversation

@jonathan-imanu

@jonathan-imanu jonathan-imanu commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Description

The current log-ingestor buffering is too conservative, making the submitted compression jobs not buffer enough input logs. This PR increases the buffer_flush_threshold to be 4.096 GiB from 256 MiB (a 16x increase).

Checklist

  • The PR satisfies the contribution guidelines.
  • This is a breaking change and that has been indicated in the PR title, OR this isn't a
    breaking change.
  • Necessary docs have been updated, OR no docs need to be updated.

Validation performed

  • Verified that the log-ingestor builds and works as expected.

Summary by CodeRabbit

  • Chores
    • Increased default log ingestor buffer flush threshold from 256 MiB to 4 GiB.
    • Bumped release/chart version for deployment.

@jonathan-imanu jonathan-imanu requested a review from a team as a code owner February 9, 2026 20:55
@coderabbitai

coderabbitai Bot commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

This pull request increases the LogIngestor buffer_flush_threshold from 256 MiB (268,435,456 bytes) to 4 GiB (4,294,967,296 bytes) in Python, Rust, template, and Helm configuration files, and bumps the Helm Chart version.

Changes

Cohort / File(s) Summary
Buffer Flush Threshold Updates
components/clp-py-utils/clp_py_utils/clp_config.py, components/clp-rust-utils/src/clp_config/package/config.rs, components/package-template/src/etc/clp-config.template.json.yaml, tools/deployment/package-helm/values.yaml
Updated buffer_flush_threshold from 256 MiB (268,435,456) to 4 GiB (4,294,967,296) across Python, Rust, template, and Helm values.
Helm Chart Metadata
tools/deployment/package-helm/Chart.yaml
Bumped chart version from 0.1.4-dev.1 to 0.1.4-dev.2.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the primary change—increasing the buffer_flush_threshold default from 256 MiB to 4 GiB across multiple components, which is reflected in all modified files.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 4

🤖 Fix all issues with AI agents
In `@components/clp-py-utils/clp_py_utils/clp_config.py`:
- Line 777: The inline comment for the constant buffer_flush_threshold is
incorrect: 4096 * 1024 * 1024 equals 4 GiB, not 4.096 GiB. Update the comment
next to buffer_flush_threshold to state "4 GiB" (or adjust the numeric
expression if you intended 4.096 GiB) so the comment accurately reflects the
value used by the buffer_flush_threshold constant.

In `@components/clp-rust-utils/src/clp_config/package/config.rs`:
- Line 242: The inline comment for buffer_flush_threshold in config.rs is
incorrect: 4096 * 1024 * 1024 equals 4 GiB, not 4.096 GiB—update the comment on
the buffer_flush_threshold field (symbol: buffer_flush_threshold) to read "4
GiB" (or adjust the numeric value if you truly want ~4.096 GiB), so the comment
accurately reflects the constant's value.

In `@components/package-template/src/etc/clp-config.template.json.yaml`:
- Line 24: Update the inline comment for the buffer_flush_threshold setting: the
value 4294967296 equals 4 GiB, not 4.096 GiB, so change the comment on the
buffer_flush_threshold line (symbol: buffer_flush_threshold) to read “# 4 GiB”
or “# 4096 MiB” accordingly to correct the unit conversion.

In `@tools/deployment/package-helm/values.yaml`:
- Line 166: The inline comment for buffer_flush_threshold is inaccurate: update
the comment next to the buffer_flush_threshold: 4294967296 line to read "# 4
GiB" (the numeric constant already equals 4 GiB), i.e., change the trailing
comment text only for the buffer_flush_threshold entry to correctly state "4
GiB".

Comment thread components/clp-py-utils/clp_py_utils/clp_config.py Outdated
Comment thread components/clp-rust-utils/src/clp_config/package/config.rs Outdated
Comment thread components/package-template/src/etc/clp-config.template.json.yaml Outdated
Comment thread tools/deployment/package-helm/values.yaml Outdated
@jonathan-imanu jonathan-imanu changed the title chore: increase buffer_flush_threshold from 256 MiB to 4.096 GiB chore: increase buffer_flush_threshold from 256 MiB to 4 GiB Feb 9, 2026

@junhaoliao junhaoliao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

since this PR modifies the Helm chart and the Package, i reviewed all files except components/clp-rust-utils/src/clp_config/package/config.rs

please wait for @LinZhihao-723 's review & approval before merging. the title's styling may need improvement as well

@junhaoliao junhaoliao Feb 10, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

btw, this change might be BREAKING cuz now we consume more memory? on memory-constrained systems (VPC / cgroupv2 resource-constraint containers), if users don't increase the memory limit of their resources, the log-ingestor may crash?

either way, i feel the scope of the PR should be feat than chore cuz the PR does bring benefits to users

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure if this should be categorized as a BREAKING change:

  • The buffer threshold is the total size of the metadata buffered, not the actual buffer size. I suspect this would cause visible difference to users. This PR doesn't imply the memory usage will increase from 256MB to 4GB (per buffer).
  • Since we didn't change the config interface, this is not "breaking". But we probably need to draw a line on whether changing the default value should be considered as breaking.

@jonathan-imanu jonathan-imanu changed the title chore: increase buffer_flush_threshold from 256 MiB to 4 GiB feat: increase buffer_flush_threshold from 256 MiB to 4 GiB Feb 10, 2026
@jonathan-imanu jonathan-imanu changed the title feat: increase buffer_flush_threshold from 256 MiB to 4 GiB feat: increase buffer_flush_threshold from 256 MiB to 4 GiB (#1965) Feb 10, 2026
@jonathan-imanu jonathan-imanu changed the title feat: increase buffer_flush_threshold from 256 MiB to 4 GiB (#1965) feat: increase buffer_flush_threshold from 256 MiB to 4 GiB Feb 10, 2026

@LinZhihao-723 LinZhihao-723 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the contribution! The change content lgtm. Here's my suggestion for the PR title:

feat(clp-package): Increase `buffer_flush_threshold` default from 256MiB to 4GiB.

Since we use the PR title as the commit message, so I'd like to give a detailed explanation on what I've changed:

  • Add (clp-package) to indicate the scope of this PR. You can learn what scope we've used in previous PRs, but in general, you can always ask Junhao or me if you have any doubts.
  • "increase" to "Increase": the PR title should start with a capital letter.
  • Use to surround symbols, in this case,buffer_flush_threshold`.
  • Add a period at the end.

@jonathan-imanu jonathan-imanu changed the title feat: increase buffer_flush_threshold from 256 MiB to 4 GiB feat(clp-package): Increase buffer_flush_threshold default from 256MiB to 4GiB. Feb 10, 2026
@LinZhihao-723 LinZhihao-723 changed the title feat(clp-package): Increase buffer_flush_threshold default from 256MiB to 4GiB. feat(clp-package)!: Increase buffer_flush_threshold default from 256MiB to 4GiB. Feb 10, 2026

@LinZhihao-723 LinZhihao-723 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm.
Also confirmed with Kirk that this PR should be a breaking change. Added ! in the PR description to indicate that.

@LinZhihao-723 LinZhihao-723 merged commit 0f91cbe into y-scope:main Feb 10, 2026
25 checks passed
@junhaoliao junhaoliao added this to the February 2026 milestone Feb 26, 2026
junhaoliao pushed a commit to junhaoliao/clp that referenced this pull request May 17, 2026
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