Complete the code to enable AOF persistence in Redis configuration.
appendonly [1]Setting appendonly yes enables AOF persistence in Redis.
Complete the command to rewrite the AOF file manually.
redis-cli [1]The BGREWRITEAOF command triggers a background rewrite of the AOF file.
Fix the error in the AOF fsync policy setting.
appendfsync [1]The valid options for appendfsync are always, everysec, and no. everysec is the recommended setting for balancing performance and durability.
Fill both blanks to configure AOF rewrite thresholds.
auto-aof-rewrite-percentage [1] auto-aof-rewrite-min-size [2]
The default settings are auto-aof-rewrite-percentage 50 and auto-aof-rewrite-min-size 64mb to trigger AOF rewrite when the file grows 50% larger and is at least 64 MB.
Fill all three blanks to configure AOF persistence with safe fsync and rewrite settings.
appendonly [1] appendfsync [2] auto-aof-rewrite-percentage [3]
This configuration enables AOF persistence, sets fsync to every second for safety and performance, and triggers rewrite when AOF grows 100% larger.