mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
app/vmselect/netstorage: limit the maximum size for in-memory buffer for temporary blocks file
This should reduce memory usage on systems with more than 8GB RAM.
This commit is contained in:
parent
ed1d259b10
commit
d21cc2d16a
@ -36,6 +36,9 @@ func maxInmemoryTmpBlocksFile() int {
|
|||||||
if maxLen < 64*1024 {
|
if maxLen < 64*1024 {
|
||||||
return 64 * 1024
|
return 64 * 1024
|
||||||
}
|
}
|
||||||
|
if maxLen > 4*1024*1024 {
|
||||||
|
return 4*1024*1024
|
||||||
|
}
|
||||||
return maxLen
|
return maxLen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user