superfly / corrosion

Gossip-based service discovery (and more) for large distributed systems.
https://superfly.github.io/corrosion/
Apache License 2.0
718 stars 22 forks source link

Truncate WAL if size above threshold #238

Closed jeromegn closed 4 months ago

jeromegn commented 4 months ago

Running PRAGMA wal_checkpoint(TRUNCATE) can be pretty expensive. Instead of running it on a timer, running it if its size is above a certain threshold makes more sense.

This should be made configurable..