Skip to content

Commit 9f47647

Browse files
Reduce fsync interval to 10ms (#4466)
# Description of Changes Reduce fsync interval from 50ms -> 10ms # API and ABI breaking changes None # Expected complexity level and risk 1 Should be fine based on p99 latencies # Testing N/A
1 parent 5764ade commit 9f47647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/durability/src/imp/local.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub use spacetimedb_commitlog::repo::{OnNewSegmentFn, SizeOnDisk};
3434
pub struct Options {
3535
/// Periodically flush and sync the log this often.
3636
///
37-
/// Default: 50ms
37+
/// Default: 10ms
3838
pub sync_interval: Duration,
3939
/// [`Commitlog`] configuration.
4040
pub commitlog: spacetimedb_commitlog::Options,
@@ -43,7 +43,7 @@ pub struct Options {
4343
impl Default for Options {
4444
fn default() -> Self {
4545
Self {
46-
sync_interval: Duration::from_millis(50),
46+
sync_interval: Duration::from_millis(10),
4747
commitlog: Default::default(),
4848
}
4949
}

0 commit comments

Comments
 (0)