- AOF Write strategy
- AOF rewrite
- Solve congestion
AOF Write strategy
from appendfsync Parameter control ：
|always||Command write buf Then the system call is invoked fsync Sync AOF file ,fsync After completion, the thread returns .|
|no||Command write buf Then the system call is invoked write operation , follow-up fsync Synchronization is done by the operating system , It's usually 30 Seconds at a time .|
|everysec||Command write buf Then the system call is invoked write operation , follow-up fsync Synchronous operation is called by special thread every second .|
everysec yes always and no A compromise of , It's about performance and security , yes redis Default configuration , It's also a recommended configuration .
When using everysec When the configuration ,redis Will use The background sub thread completes fsync Sync .
本文为[Program ape Owen]所创，转载请带上原文链接，感谢