mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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
ed1d259b10
commit
d21cc2d16a
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