Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing MAXMEMORYPOLICY for redis images #477

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

cdchris12
Copy link
Contributor

This PR implements the ability to configure redis' maxmemory-policy setting via the new MAXMEMORYPOLICY variable.

Partially fulfills #476

@cdchris12 cdchris12 added the enhancement New feature or request label May 27, 2022
@cdchris12 cdchris12 self-assigned this May 27, 2022
@tobybellwood
Copy link
Member

can confirm:

docker run --rm -it -e MAXMEMORY=200mb -e MAXMEMORYPOLICY=allkeys-lfu testlagoon/redis-5:pr-477
...
redis:/data$ printenv | grep MAXMEMORY
MAXMEMORYPOLICY=allkeys-lfu
MAXMEMORY=200mb
redis:/data$ redis-cli config get maxmemory*
1) "maxmemory"
2) "209715200"
3) "maxmemory-samples"
4) "5"
5) "maxmemory-policy"
6) "allkeys-lfu"

@tobybellwood tobybellwood merged commit 0c64d32 into main Jun 1, 2022
@tobybellwood tobybellwood deleted the redis_maxmemorypolicy branch June 1, 2022 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants