keepalived - keepalive +redis 方案中数据同步的问题
黄舟
黄舟 2017-04-24 09:12:50
0
2
799

关于使用keepalive做redis集群的方案,当一台redis宕机了,另一台redis就会接管服务,但是宕机时,vip漂移,master和slave做角色转换,需要将之前的master的数据同步当前redis中,如果距离上次这种数据同步已经很久了,会不会产生大量的数据,我的问题是,如果在几分钟内同步不完,是不是会导致redis在几分钟内无法提供服务

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
大家讲道理

Master/slave are not synchronized in real time

左手右手慢动作

There will be a certain delay in the synchronization between the master and backup, but the synchronization is not performed after the role switch. Therefore, the new master can provide services immediately after the role switch, but the data may be missing for a certain period of time (due to synchronization Caused by delays), but the new owner can also be allowed to provide services after complete synchronization, which will cause the service to be unavailable for a period of time.
I don’t understand what is the keepalive solution for redis cluster. The above is just my personal opinion.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template