Description
<…>ch disk space to allocate for a partition containing
WAL files.
|For example, suppose
checkpoint_interval
= 2 and
checkpoint_count
= 5
and the average amount that Tarantool writes between each checkpoint interval
= 1 GB.
Then one could calculate that the necessary amount is (2*5*1) 10GB.
But this calculation would be wrong if, instead of writing 1 GB
during one checkpoint interval,
Tarantool encounters an unusual spike and tries to write 11 GB,
causing an operating-system ENOSPC (“no space”) error.
By setting checkpoint_wal_threshold to a lower value, say 9 GB,
an administrator could prevent the error.|Type: integer
Default: 10^18 (a large number so in effect ther<…>
https://www.tarantool.io/en/doc/latest/reference/configuration/
The example is confusing.
checkpoint_interval = 2
- seconds ?
Why (2 * 5 *1) GB if we assume that tarantool writes 1 GB per interval (2 seconds). Wouldn't it be 5 * 1 GB in total?
Besides, checkpoint_wal_threshold
only controls WALs after the last checkpoint, not size of all wals. So setting checkpoint_wal_threshold
to 9 GB would be erroneous and wouldn't prevent the error.