Login
网站首页 > 文章中心 > 其它

redis配置文件中slave-serve-stale-data的解释

作者:小编 更新时间:2023-08-06 11:10:44 浏览量:434人看过

redis配置文件中slave-serve-stale-data的解释-图1

redis.conf文件中可以看到slave-serve-stale-data这个参数,作用是什么?

原文解释:

# When a slave loses its connection with the master, or when the replication
# is still in progress, the slave can act in two different ways:
#
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
#    still reply to client requests, possibly with out of date data, or the
#    data set may just be empty if this is the first synchronization.
#
# 2) if slave-serve-stale-data is set to 'no' the slave will reply with
#    an error "SYNC with master in progress" to all the kind of commands
#    but to INFO and SLAVEOF.
#
slave-serve-stale-data yes

以上就是土嘎嘎小编为大家整理的redis配置文件中slave-serve-stale-data的解释相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!

版权声明:倡导尊重与保护知识产权。未经许可,任何人不得复制、转载、或以其他方式使用本站《原创》内容,违者将追究其法律责任。本站文章内容,部分图片来源于网络,如有侵权,请联系我们修改或者删除处理。

编辑推荐

热门文章