Reputation: 2103
I have installed redis cluster 3.0.0. But Want to upgrade it to 3.0.7. Can somebody tell me the steps to do it?
I don't want to loose any data. And don't want any downtime either.
Upvotes: 3
Views: 1561
Reputation: 9622
Steps I did when upgrading from 2.9.101 to 3.0 release. I hope it will do for upgrading to 3.0.7 too.
UPDATE : Docker approach
As it's probably unable to replacing the binary executable while the process is still alive, you could do it by run some Redis in docker.
First you should install docker on your machine and pull the Redis image, or pull a basic OS image and manually build Redis in it, whatever
Based on this image, you are supposed to
redis.conf
into itdir
exists in the image (cluster-config-file
could be the same for all the containers as they are saved individually in their own fs)logfile
exists and is not the same as dir
(we will later map this directory to the host)port
logfile
anything you like, as they are specified when a container is startedredis-3.0.7
Now launch a containerized Redis. I suppose your logfile
is located in /var/log/redis/
, this Redis binds :8000
, and your config file in the image is /etc/redis/redis.conf
docker run -d --net=host -v /var/log/redis:/var/log/redis \
-p 8000:8000 -t redis-3.0.7 \
/usr/bin/redis-server /etc/redis/redis.conf \
--port 8000 \
--logfile /var/log/redis/redis_8000.log
Now you have a Redis 3.0.7 instance, and are ready to finish the rest steps in the previous part.
Upvotes: 0