Following the sunsetting of LiteFS Cloud, I have setup Litestream on my app as per the Continuous backup via Litestream documentation to backup my litefs running with consul for dynamic leases.
It works well but only as long as I have a single node. Now I understand now that I missed the “This approach only works if you are running a static lease on your cluster.” bit in the documentation and I had.
So am I prevented from ever running multiple nodes?
Are there any solution to run litestream while having multiple node? Ideally litestream would run on all the nodes and simply quietly ignore read-only nodes.
I guess could leverage if-candidate
to run litestream on a single node in a primary region while having multiple secondary nodes in a secondary region.. That would be a slight improvement but that’s not really what I want as I need to have multiple candidates nodes in the primary region for better availability.
Or could I change the lease strategy?
Am I missing something obvious here?