Redis config changes
alextrueman
PROOP

a year ago

Hi guys, I already saw a few topics on this question, but still not pretty much clear for me how to..:

We need 2 Redis services with:

1. maxmemory-policy: noevictim - this one is default so no problems

2. maxmemory-policy: allkeys-lru - when I set it trough redis-cli and restart service ( I believe restart might happens? ), it's resets back to "noevictim", any suggestions?

$10 Bounty

2 Replies

a year ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 11 months ago


a year ago

Hey there! Are you currently using a separate Dockerfile to modify the Redis conf?

I've been looking through the official Redis image on dockerhub and its saying https://hub.docker.com/%5F/redisYou can also pass some command line args.

I am not as personally familiar with setting these variables but at my investigation the docs advise:

--maxmemory-policy allkeys-lru and adding --maxmemory 256mb to some value as it allkeys-lru only works if --maxmemory is non zero.

This sets it on boot and can be set in the start command

https://docs.railway.com/reference/build-and-start-commands#how-it-works


a year ago

Has this been resolved?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...