From 7c6466d476c48e43fed92943751dd56d74d82e39 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Fri, 8 May 2015 18:10:56 +0200 Subject: [PATCH] Reserve only ~1M FPs for the mapping. That reduces the chance of having a fingerprint in the reserved area. --- storage/local/mapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/local/mapper.go b/storage/local/mapper.go index 9e65207cd4..f6465da8e9 100644 --- a/storage/local/mapper.go +++ b/storage/local/mapper.go @@ -12,7 +12,7 @@ import ( clientmodel "github.com/prometheus/client_golang/model" ) -const maxMappedFP = 1 << 30 // About 1B fingerprints reserved for mapping. +const maxMappedFP = 1 << 20 // About 1M fingerprints reserved for mapping. var separatorString = string([]byte{clientmodel.SeparatorByte})