Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test out LiteFS for SQLite replication #37

Open
djwhitt opened this issue Aug 22, 2023 · 0 comments
Open

Test out LiteFS for SQLite replication #37

djwhitt opened this issue Aug 22, 2023 · 0 comments
Assignees

Comments

@djwhitt
Copy link
Collaborator

djwhitt commented Aug 22, 2023

It would be great to have an easy SQLite replication option to recommend (yeah, don't worry. we'll support other DBs eventually too). LiteFS (https://fly.io/docs/litefs/) looks like it could work. Someone should try it and let us know how it goes.

This is a guide that will get you started setting up the gateway and LiteFS on fly.io for testing purposes: https://blog.developerdao.com/running-an-arweave-gateway-on-flyio

Things we'd like to learn more about:

  • How quickly do blocks get indexed?
  • Is there much replication lag?
  • What errors do the readers throw? (they'll still be attempting some writes)
    • Do any of the errors result in user visible issues?
@djwhitt djwhitt assigned djwhitt and unassigned djwhitt Aug 22, 2023
djwhitt added a commit that referenced this issue Aug 25, 2023
Adds an experimental config environment variable, START_WRITERS. It
defaults to 'true'. If set to 'false', worker processes that write to
the DB will be disabled. This is to support experimentation with SQLite
replaction via LiteFS.
@djwhitt djwhitt changed the title Test out LiteFS Test out LiteFS for SQLite replication Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant