Redis aof Persistence-related configuration
appendonly No #如果是yes, then turn on aof persistence
appendfilename "appendonly.aof" # Specifies AOF file name, also exists under Dir definition directory.
appendfsync everysec #指定fsync () call pattern, there are three kinds of no (do not call Fsync), always (each write will call Fsync), everysec (call once per second Fsync). The first is the fastest, the second data is the safest, but the performance will be worse, the third is this scenario, the default is the third.
No-appendfsync-on-rewrite No # Use No to avoid disk IO blocking when the write volume is very large
Auto-aof-rewrite-percentage #规定什么情况下会触发aof重写. The value is a scale, and 10 means that the override mechanism is triggered when the AoF file increases by 10%.
Auto-aof-rewrite-min-size 64MB #重写会有一个条件, is not less than 64Mb
Redis slow log-related configuration
For slow logs, you can set two parameters, one is the execution length, the unit is microseconds, the other is the length of the slow log. When a new command is written to the log, the oldest one is removed from the command log queue.
Slowlog-log-slower-than 10000 #慢于10000微秒则记录日志
Slowlog-max-len #日志长度128条
2.1-redis configuration explanation (bottom)