mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: properly limit the size of storage/date_metricID
cache
This commit is contained in:
parent
f3a5465ece
commit
4f80b2f230
1 changed files with 1 additions and 1 deletions
|
@ -2094,7 +2094,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