首页 > 文章 > redis 的备份策略:

redis 的备份策略:

############################## APPEND ONLY MODE ###############################

# By default Redis asynchronously dumps the dataset on disk. This mode is
# good enough in many applications, but an issue with the Redis process or
# a power outage may result into a few minutes of writes lost (depending on
# the configured save points).
#
# The Append Only File is an alternative persistence mode that provides
# much better durability. For instance using the default data fsync policy
# (see later in the config file) Redis can lose just one second of writes in a
# dramatic event like a server power outage, or a single write if something
# wrong with the Redis process itself happens, but the operating system is
# still running correctly.
#
# AOF and RDB persistence can be enabled at the same time without problems.
# If the AOF is enabled on startup Redis will load the AOF, that is the file
# with the better durability guarantees.
#
# Please check http://redis.io/topics/persistence for more information.

appendonly no

翻译:

默认情况下,Redis 异步保存数据库到磁盘。这个模式适用于很多应用,但是 Redis 进程有问题或者断电,会导致几分钟的写数据丢失。
时间:2019-03-15 20:48:01阅读(29)评论(0) 收藏(0) 【+收藏】
评论
暂无评论!
登录后评论!
加入时间:2018-03-07
关注此人发短消息
文章分类
默认分类(28334
前川 关注的人(0
前川 被(1)人关注
联系我们 - 留言反馈
© 2017 版权所有 鲁ICP备17052893号