mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00: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
9f027ec176
commit
7327adbc86
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ func maxInmemoryTmpBlocksFile() int {
|
|||
if maxLen < 64*1024 {
|
||||
return 64 * 1024
|
||||
}
|
||||
if maxLen > 4*1024*1024 {
|
||||
return 4*1024*1024
|
||||
}
|
||||
return maxLen
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue