Some Questions about the RDB of redis

26 views
Skip to first unread message

Paul cheng

unread,
Jul 7, 2022, 10:04:00 AM7/7/22
to Redis DB
Hi there,
i have some questions about the strategy of rdb. As we can see in the config file of redis, there have default value.as the desc below;
==============
# Save the DB on disk:
#
#   save <seconds> <changes>
#
#   Will save the DB if both the given number of seconds and the given
#   number of write operations against the DB occurred.
#
#   In the example below the behaviour will be to save:
#   after 900 sec (15 min) if at least 1 key changed
#   after 300 sec (5 min) if at least 10 keys changed
#   after 60 sec if at least 10000 keys changed
#
#   Note: you can disable saving completely by commenting out all "save" lines.
#
#   It is also possible to remove all the previously configured save
#   points by adding a save directive with a single empty string argument
#   like in the following example:
#
#   save ""

save 900 1
save 300 10
save 60 10000
=======================
so are there the three condition should be fullfilled at the same time,then can redis do the snapshot? Or only one of the condition is ok?
Thank you for your reply !!!



sundb

unread,
Jul 7, 2022, 10:50:07 AM7/7/22
to Redis DB
If only one of the three condition is met, snapshot will be triggered.
Reply all
Reply to author
Forward
0 new messages