LiteFS - Optimize Sqlite

Yep, you have the sense of fuse.dir and data.dir inverted. (Many others have made that same mistake!)

Your application should interact solely with fuse.dir, and that’s set to /litefs in the litefs.yml you posted. This is where the litefs daemon is watching for changes to the WAL, etc.

In contrast, data.dir should be considered a private implementation detail: don’t modify anything there directly.

This will also cause problems, :dragon:. As discussed in the previous thread, you want it to be ≥2 (and have at least that many Machines in lax, your declared primary_region).

Hope this helps!

2 Likes