Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDB Dump on Sigterm when AOF is enabled #4096

Open
davissp14 opened this issue Jul 1, 2017 · 1 comment
Open

RDB Dump on Sigterm when AOF is enabled #4096

davissp14 opened this issue Jul 1, 2017 · 1 comment

Comments

@davissp14
Copy link

Out of curiosity, why does Redis work to dump an RDB on SIGTERM when AOF is also enabled? Is there value to this operation given the AOF file is used on boot?

screen shot 2017-06-30 at 8 30 01 pm

@davissp14 davissp14 changed the title RDB Dump on Sigterm when AOF is enabled? RDB Dump on Sigterm when AOF is enabled Jul 1, 2017
@kumar003vinod
Copy link

Hi @davissp14,

  • By default redis only saves to DB snapshot file.
  • If we configure redis only with AOF (appendonly yes), it writes only to AOF file.
  • And If we configure redis with AOF and Snapshotting (save x y), it writes to both AOF and DB snapshot and when SIGTERM is received it completes the write to both AOF file and DB snapshot to keep both of them up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants