superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.76k stars 89 forks source link

Add snapshot timeout #397

Closed benbjohnson closed 10 months ago

benbjohnson commented 10 months ago

This pull request adds a snapshot-timeout configuration to the HTTP server. This prevents slow LTX snapshot writes from holding locks on the database for an excessive period of time. If not specified, it defaults to the retention period since exceeding this period would require the replica to re-snapshot anyway.

Configuration

http:
  snapshot-timeout: "5m"