litefs icon indicating copy to clipboard operation
litefs copied to clipboard

NFS-Based Lease Management

Open benbjohnson opened this issue 1 year ago • 3 comments

Given that NFS provides file locking, we could build a lease system around it that can be shared by multiple LiteFS instances. AWS, GCP & Azure all provide hosted NFS mounts so it could be a simple way to run an HA cluster rather than relying on Consul.

benbjohnson avatar Jul 30 '23 14:07 benbjohnson

agree, it would be much simpler.

BTW, is there any public roadmap for litefs?

jasonbigl avatar Jul 31 '23 05:07 jasonbigl

We don't currently have a public roadmap available. Our two main focuses right now are getting LiteFS working better on non-Fly deployments (e.g. AWS, GCP, etc) and to get LiteFS working on ephemeral deployments (e.g. Vercel).

benbjohnson avatar Aug 01 '23 02:08 benbjohnson

This might be tangential - I can open a separate issue if what I ask about makes sense and it is - but would it be possible to run on fly using the NFS protocol instead of FUSE to provide the custom file system?

For context: I'm asking because Fly is planning to charge more for storing the starting FS state of stopped machines. Some languages can create perfectly OK images with just copying a few files into the scratch base image - but having C dependencies (which might have C dependencies of their own! the terror!) complicates that picture, and FUSE is a C dependency.

I can see that the flyio/litefs docker image is quite minimal - but I don't get the impression it's designed to be fully functional on it's own since the example pulls the runtime C dependencies in as well.

szabba avatar Feb 01 '24 19:02 szabba