You missed the difference between the RDB and AOF, RDB is state of db at
the given time, AOF is path how to get to that state :-). In aof goes
every write command you issue to redis, so the "last saved state" is
that of last write command issued (give or take fsync, in case of
catastrophic failure). What BGREWRITEAOF is that it only compact AOF, so
it doesn't contain redundant and unnecessary commands (to put it simply).
-Ph
> --
> You received this message because you are subscribed to the Google
> Groups "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/pog3fp4Sdw0J.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.
The two configuration options you are looking for are: appendfsync and
auto-aof-rewrite-percentage.
When you want them to hold off from writing, you would set:
appendfsync no
auto-aof-rewrite-percentage 10000
Then after you've done your writing, you could change it to...
appendfsync everysec
And on a rotating basis, you would say:
auto-aof-rewrite-percentage XXX
For each Redis instance, you can determine whether there is a rewrite
in progress by checking the bgrewriteaof_in_progress output from INFO.
Regards,
- Josiah
>> > redis-db+u...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/redis-db?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/YY17plZ0cgEJ.
>
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/redis-db?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/YY17plZ0cgEJ.
>
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to