Fix WAL size

This patch fixes the calculation of the size of the WAL in bytes.

Change-Id: Ibdb19c30cec01a5c704f337e69eb51d08f25ed9a
This commit is contained in:
Guillaume Thouvenin 2016-10-07 09:01:09 +02:00 committed by Simon Pasquier
parent 4f4dc5abb8
commit bbe8ee7550
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,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