Fix WAL size
This patch fixes the calculation of the size of the WAL in bytes.
Change-Id: Ibdb19c30cec01a5c704f337e69eb51d08f25ed9a
(cherry picked from commit bbe8ee7550
)
This commit is contained in:
parent
2295de5123
commit
3ba4b96563
|
@ -44,7 +44,7 @@ $retention_period = $influxdb_grafana['retention_period']
|
|||
if $influxdb_grafana['influxdb_in_memory_wal'] {
|
||||
$influxdb_wal_storage = 'memory'
|
||||
# Allocate 10% of the total RAM for the WAL partition (but no more than 4GB)
|
||||
$influxdb_wal_size = min(4 * 1024 * 1024 * 1024, $::memorysize_mb * 1024 * 0.1)
|
||||
$influxdb_wal_size = min(4 * 1024 * 1024 * 1024, $::memorysize_mb * 1024 * 1024 * 0.1)
|
||||
} else {
|
||||
$influxdb_wal_storage = 'disk'
|
||||
$influxdb_wal_size = 0
|
||||
|
|
Loading…
Reference in New Issue