Reserve only ~1M FPs for the mapping.

That reduces the chance of having a fingerprint in the reserved area.
This commit is contained in:
beorn7 2015-05-08 18:10:56 +02:00
parent ac75dc2812
commit 7c6466d476

View file

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