mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
lib/storage: properly limit the size of storage/date_metricID
cache
This commit is contained in:
parent
390a31ccfa
commit
3f705fe8d7
@ -2230,7 +2230,7 @@ func (dmc *dateMetricIDCache) syncLocked() {
|
||||
|
||||
atomic.AddUint64(&dmc.syncsCount, 1)
|
||||
|
||||
if dmc.EntriesCount() > memory.Allowed()/128 {
|
||||
if dmc.SizeBytes() > uint64(memory.Allowed())/256 {
|
||||
dmc.resetLocked()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user