编程知识 cdmana.com

Aof writing and AOF rewriting block redis and Solutions

AOF Write and AOF Rewrite right redis Blocking and solutions for .

Catalog
  • AOF Write strategy
  • AOF rewrite
  • Blocking
  • Solve congestion

AOF Write strategy

from appendfsync Parameter control :

Configurable values explain
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 .

AOF rewrite

<.........

版权声明
本文为[Program ape Owen]所创,转载请带上原文链接,感谢
https://cdmana.com/2021/01/20210131170206105A.html

Scroll to Top