Skip to content

Limit key size - #1968

Closed
camilo wants to merge 2 commits into
redis:2.8from
camilo:limit_key_size
Closed

camilo wants to merge 2 commits into
redis:2.8from
camilo:limit_key_size

Conversation

@camilo

@camilo camilo commented Aug 25, 2014

Copy link
Copy Markdown

Problem

I've observed redis servers eat up all the machines memory and get into swapping causing issues on the clients, when a bug or just careless usage introduces very large keys (100s of MBs).

What is here?

This adds the max-key-size config option, when the value of that option is not null keys longer than the number in bytes defined will be rejected.

I'm PRing against 2.8, I can move it to 3.x if there is interest.

Topic on the google group: https://groups.google.com/forum/#!topic/redis-db/aLxpHURnA8Q

/cc @csfrancis, @fbosany

what do you think ? @antirez @pietern

Camilo Lopez added 2 commits August 17, 2014 17:14
This commit adds a check on every write command, that will err the command if
any of the keys is longt er than some arbitrary limit, if this is deemed not
terrible, I'll follow up with a commit that makes the max key size a
configurable parameter.
@aybabtme

Copy link
Copy Markdown

@fbogsany

@badboy

badboy commented Aug 25, 2014

Copy link
Copy Markdown
Contributor

You should base this PR on unstable

@camilo camilo mentioned this pull request Sep 1, 2014
@mattsta

mattsta commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

[dead, replaced by #1975]

@mattsta mattsta closed this Sep 2, 2014
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.

4 participants