Skip to content

Limit redis alloc size#5

Open
thweetkomputer wants to merge 3 commits intomasterfrom
limit-redis-alloc-size
Open

Limit redis alloc size#5
thweetkomputer wants to merge 3 commits intomasterfrom
limit-redis-alloc-size

Conversation

@thweetkomputer
Copy link
Collaborator

@thweetkomputer thweetkomputer commented Aug 12, 2025

What problem does this PR solve?
Issue Number: null

Problem Summary: redis request or response may have a too large size that cause the server to consume too much memory.

What is changed and the side effects?
Changed: Add a limit for allocation size

Side effects:

Performance effects: no

Breaking backward compatibility: Some redis request/response may fail to parse if the data size exceed the default value of redis_max_allocation_size (64M). User can adjust the flag redis_max_allocation_size for their senarios.

Check List:
Please make sure your changes are compilable.
When providing us with a new feature, it is best to add related tests.

@CLAassistant
Copy link

CLAassistant commented Aug 12, 2025

CLA assistant check
All committers have signed the CLA.

@thweetkomputer thweetkomputer force-pushed the limit-redis-alloc-size branch from ce268b5 to 5d7ed60 Compare August 12, 2025 02:42
@thweetkomputer thweetkomputer self-assigned this Aug 12, 2025
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.

2 participants