Skip to content

Conversation

fengjiachun
Copy link
Collaborator

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

Add memory limiting for concurrent HTTP and gRPC requests to prevent unbounded memory growth from large concurrent write operations.

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

@fengjiachun fengjiachun requested review from a team, waynexia and zhongzc as code owners October 14, 2025 13:50
@github-actions github-actions bot added size/M docs-not-required This change does not impact docs. labels Oct 14, 2025
Signed-off-by: jeremyhi <[email protected]>
## Set to 0 to disable limit.
body_limit = "64MB"
## Maximum total memory for all concurrent HTTP request bodies.
## Set to 0 to disable the limit. Default: "0" (unlimited)
Copy link
Collaborator

Choose a reason for hiding this comment

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

better set a reasonable default, like 100MB, for better out-of-the-box user experience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required This change does not impact docs. size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants