Skip to content

Expected behavior with two sources and one replica? #61

Answered by benbjohnson
simon-weber asked this question in Q&A
Discussion options

You must be logged in to vote

That's basically correct. If you had Litestream running on two servers and both were replicating to s3://mybkt/my.db then each server would generate a random generation name on initialization. They're 16-character hex values so you might have 58fb2264a74af21f on one server and 1425566ccde1b8d8 on the other. They would get replicated to mybkt under paths like:

my.db/
	generations/
		58fb2264a74af21f/
			snapshots/
			wal/
		1425566ccde1b8d8/
			snapshots/
			wal/

Retention will remove snapshots & WAL files that exceed the retention time (24h by default). There could be some weird interaction currently because there's only one snapshot per generation at a time right now but snapshot interv…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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