数据库
首页 > 数据库> > redis从节点加入集群后key数量与主节点不一致

redis从节点加入集群后key数量与主节点不一致

作者:互联网

背景
最近新部署一台redis从节点服务器时,检查发现key数量远比主节点要少得多,而其他从节点的key和主节点差不多。

原因
If you use keys with limited time to live (Redis expires) this is normal behavior. This is what happens:

As a result of this, it is common for users with many keys with an expire set to see less keys in the slaves, because of this artifact, but there is no actual logical difference in the instances content.

标签:keys,redis,but,master,key,memory,节点
来源: https://www.cnblogs.com/blacklsle/p/16479476.html