If you previously used Redis, you can migrate from this database to Valkey in one of the following ways:
- Smooth migration — without shutting down the HUMMIX application.
- Migration with downtime — requiring the HUMMIX application to be stopped.
Smooth migration from Redis to Valkey
For smooth migration:
- Use additional node. On this node, install Valkey as specified from the first to the second steps in the Valkey article.
- Change the HUMMIX parameters by specifying the connection string to Valkey:
- Connection string for Valkey:
redis://<valkey-server-address>:6379/0
- Connection string for Valkey with TLS/SSL:
rediss://<valkey-server-address>:6379/0
- After successfully connecting to Valkey, disable the Redis server to free up system resources. It is no longer in use.
Migration from Redis to Valkey with HUMMIX application downtime
To migrate from Redis to Valkey using the current Redis server:
- Stop all HUMMIX services and wait for them to complete. To do this, use the command:
kubectl scale deploy --replicas=0 --all [-n <hummix-namespace>]
- Stop all Redis services:
sudo systemctl disable --now redis-server
- Install Valkey as specified from the first to the second steps in the Valkey article.
- Start all HUMMIX application services with the command:
kubectl scale deploy --replicas=1 --all [-n <hummix-namespace>]