1、RDB:快照
参考配置文件中的说明:大概指的是指定时间内至少有多少个数据改变
################################ SNAPSHOTTING ################################ # # 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
ps:涉及点-父子进程之间,数据隔离&CopyOnWrite(仅写时复制)
2、AOF:日志
原文:https://www.cnblogs.com/gabin/p/13666134.html