replication over unreliable Networks / network partitions / disconnects #143
-
How good/bad would litestream work in situation where there are unreliable network connections involved. For example: we have a fleet of vessels that have cellular network near port (99+% of time) but there are occasions when those vessels are so far off at sea that there are no persistent connection. This can last from couple of hours (most of the time) to extreme a week. I would guess it is same as network partition between 2 servers in usual data center setup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @aldas. Good question. Litestream copies out WAL frames out to a directory next to your database file so it doesn't interfere with SQLite's checkpointing. That will keep growing until it can flush out to the replica. That's probably your biggest concern is that you could fill up your disk depending on how many writes you're doing while disconnected. Litestream will keep retrying though so disconnects aren't a problem. |
Beta Was this translation helpful? Give feedback.
Hi @aldas. Good question. Litestream copies out WAL frames out to a directory next to your database file so it doesn't interfere with SQLite's checkpointing. That will keep growing until it can flush out to the replica. That's probably your biggest concern is that you could fill up your disk depending on how many writes you're doing while disconnected.
Litestream will keep retrying though so disconnects aren't a problem.