redis中AOF缓冲区和AOF重写缓冲区的区别
迷茫
迷茫 2017-04-24 09:09:45
0
2
1044

请问在Redis中,AOF缓冲区和AOF重写缓冲区的区别是什么?
设置AOF重写缓冲区,是为了在Redis在进行AOF重写期间引起的数据不一致问题,
但是,所有的写命令都会写到AOF缓冲区和AOF重写缓冲区,这样的话,AOF缓冲区的内容应该是和AOF重写缓冲区的内容是一致的呀,AOF缓冲区也就可以替代AOF重写缓冲区了。

是不是我哪里理解错了,多谢。

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
阿神

See AOF Redis-Design and Implementation for details. I am also reading it. It is very well written.

Peter_Zhu

The reason why the AOF buffer cannot replace the AOF rewrite buffer is that the AOF rewrite buffer records all commands that need to be rewritten since the rewrite started, while the AOF buffer may only record part of the commands.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template