Redis Admin and maintenance: Configure Persistence(1)
{"Image DocumentName": "Redis Admin and maintenance: Configure Persistence(1)", "Image ImageDescription": "Persistence Mode: snapshotting and AOF. It should be configured in a way that suits your dataset and usage patterns. snapshotting, which consists of saving the entire database to disk in the RDB format (a compressed database dump). This can be done periodically at set times, or every time a configurable number of keys changes. # save <seconds> <changes> save after 900 sec (15 min) if at least 1 key changed. save after 300 sec (5 min) if at least 10 keys changed. save after 60 sec if at least keys changed. The alternative is using an Append Only File (AOF). This might be a better option if you have a large dataset or your data doesn\u2019t change very frequently. ./redis-server --appendonly yes. It is possible to combine both AOF and RDB in the same instance. Master ->> Slave can be a option. Both are sequential IO. When Redis starts, it will read RDB or AOF to load all data into memory.   ################################ 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 keys changed. # Note: you can disable saving at all commenting all the save lines. save save save # Compress string objects using LZF when dump .rdb databases? # For default that s set to yes as it s almost always a win. # If you want to save some CPU in the saving child set it to no but. # the dataset will likely be bigger if you have compressible values or keys. rdbcompression yes. # The filename where to dump the DB. dbfilename dump.rdb. # The working directory. # The DB will be written inside this directory, with the filename specified. # above using the dbfilename configuration directive. # Also the Append Only File will be created inside this directory. # Note that you must specify a directory here, not a file name. dir ./", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}