I switched from Redis to Valkey today and wanted to share my results. I use Docker Compose so your mileage may vary with other deployment tooling.
The change was straightforward and seamless. Here’s a short reusable checklist:
- destroy nextcloud server and redis containers
- update redis sidecar in
compose.yml
- change
redis
service name tovalkey
- change image for this service from
redis
tovalkey/valkey
- change
command
for this service:redis-server
becomesvalkey-server
- change
- update
redis-session.ini
- change connection string in
session.save_path
fromtcp://redis:6379
totcp://valkey:6379
- change connection string in
- update nextcloud
config.php
- change
redis.host
tovalkey
- change
- start nextcloud server and redis containers
After all that, my Nextcloud server appeared to work exactly as it did before. Maybe a bit faster, but that might be wishful thinking. I didn’t measure response times before/after.
I didn’t find anything exactly like this before posting, but if I missed something please let me know. Redis replacement? is relevant.