cuprate
cuprate copied to clipboard
Database fast-then-slow sync
What
Cuprate's database's default disk syncing mode may be fast-then-slow
, which would cause the database to operate in fast
mode, not flushing to disk during initial sync for speed, then eventually switch to safe
mode, flushing whenever possible for reliability.
This was discussed for monerod
here:
- https://github.com/monero-project/monero/issues/706#issuecomment-267501242
- https://github.com/monero-project/monero/issues/1463
- https://github.com/monero-project/monero/pull/1506
Open questions
- Q1. Under what conditions do we start in
fast-then-safe
mode? (accounting for restarts, practically empty database files, etc) - Q2. How will we reliably know when to switch to
safe
mode? (when is the node close enough to being synced?) - Q3. Should this be the default sync mode?