Skip to content

Backing Up Many DBs to 2 or More Locations #92

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

You must be logged in to vote

Hi @alteredorange! Good question. Right now, Litestream does polling on the underlying WAL file, however, that's going to be changed in v0.4.0 to use something like fsnotify to only check the WAL file when it changes. In addition to using fewer resources, it will allow for low-latency read replicas of SQLite databases (#8).

As for load, Litestream doesn't incur much load generally but you'll probably see an increase in CPU for LZ4 compression. Unfortunately that can't be shared as two replicas may be at different positions in the WAL.

Replies: 1 comment 2 replies

Comment options

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

@benbjohnson
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
3 participants