Skip to content

Brand new user, unclear on generations and retention #258

Answered by benbjohnson
rwboyer asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rwboyer, good question. There's a section on the How it works page of the web site called Snapshots & Generations that gives some more detail but I'll try to be more clear here.

Essentially, a "generation" contains at least one snapshot and then a contiguous series of WAL pages. Since Litestream can be stopped and restarted separate from your application, it could miss updates to the database while it is stopped. If Litestream detects that it can't resume from where it left off, it'll start a new generation.

Here's a visual. Generation XXXXXXXX starts with a snapshot #1 and begins replicating its WAL. Eventually it may create another snapshot #2 (depending on your snapshot frequency s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by benbjohnson
Comment options

You must be logged in to vote
2 replies
@benbjohnson
Comment options

@ChrisDrit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants