mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-25 21:58:18 +00:00
21 lines
512 B
Markdown
21 lines
512 B
Markdown
# flush
|
|
|
|
Whether to flush data to storage after each write. The default is `false`.
|
|
When set to `true`, a backend specific means of flushing OS buffers to storage
|
|
will be used after each write to encourage maximum durability of writes.
|
|
|
|
Setting `flush=true` can be incredibly harmful to throughput, and, depending
|
|
on your local storage device and filesystem selection, may not meaningfully
|
|
increase durability.
|
|
|
|
```lua
|
|
kumo.on('init', function()
|
|
kumo.define_spool {
|
|
-- ..
|
|
flush = false,
|
|
}
|
|
end)
|
|
```
|
|
|
|
|