Skip to content

Replication Failure Scenerios #90

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

You must be logged in to vote

Yes, that's an accurate mental model. Litestream performs asynchronous replication similar to PostgreSQL's streaming replication so there is a small window for data loss in the event of a catastrophic failure. I plan to add synchronous replication in the future as well but that can incur a performance and availability penalty so it would need to be enabled explicitly.

As for intervals, there are two main ones in Litestream. There's a monitor interval that moves WAL pages from the primary DB's WAL file to a shadow WAL file that can be read by replicas. This interval defaults to 1s and is mainly to limit resource usage on the machine. Then there's also an interval for the S3 replica that sp…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@voldyman
Comment options

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