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:
Guillaume Thouvenin 2016-10-07 09:01:09 +02:00
parent 2295de5123
commit 3ba4b96563
1 changed files with 1 additions and 1 deletions

View File

@ -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