mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/storage: properly limit the size of storage/date_metricID
cache
This commit is contained in:
parent
390a31ccfa
commit
3f705fe8d7
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue