Upgrade Redis from 2.8.19 to 6.2.5 on CentOS 7

41 views
Skip to first unread message

Generalusemail Generaluse

unread,
Sep 20, 2021, 8:12:19 AMSep 20
to Redis DB
Hello,
I am new to Redis. I have one master and one slave in production running with Redis version 2.8.19.
Can someone help me understand, what all steps I need to do if I want to upgrade Redis to the latest version with adding clustered environment without loosing any data and minimum downtime?

Thanks in advance.
Tom

Generalusemail Generaluse

unread,
Sep 29, 2021, 1:13:35 PMSep 29
to Redis DB
Hello Redis team,
I really appreciate if you can give me some hint on how I can start working on this upgrade.

Regards,
Tom

sundb

unread,
Sep 30, 2021, 1:38:52 AMSep 30
to Redis DB
1. Create a slave with the latest version, then execute `slaveof [master_ip] [masterport]` to synchronize the data and use `info replication` to see the slave's offset.
2. After sync end, set the salve's  `slave-read-only` to `no`.
3.  Directing online traffic to this slave.
4. When the old master qps is 0, stop the master and upgrade.
5. You can then start again from step 1, sync data from the slave to the restarted master.
Reply all
Reply to author
Forward
0 new messages