mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: remove outdated misleading comments
This commit is contained in:
parent
92de6ea340
commit
f20d452196
1 changed files with 3 additions and 11 deletions
|
@ -28,14 +28,10 @@ import (
|
|||
// This time shouldn't exceed a few days.
|
||||
const maxBigPartSize = 1e12
|
||||
|
||||
// The maximum number of inmemory parts per partition.
|
||||
// The maximum expected number of inmemory parts per partition.
|
||||
//
|
||||
// This limit allows reducing querying CPU usage under high ingestion rate.
|
||||
// See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5212
|
||||
//
|
||||
// This number may be reached when the insertion pace outreaches merger pace.
|
||||
// If this number is reached, then the data ingestion is paused until background
|
||||
// mergers reduce the number of parts below this number.
|
||||
// The actual number of inmemory parts may exceed this value if in-memory mergers
|
||||
// cannot keep up with the rate of creating new in-memory parts.
|
||||
const maxInmemoryParts = 60
|
||||
|
||||
// Default number of parts to merge at once.
|
||||
|
@ -1275,10 +1271,6 @@ func (pt *partition) getMaxSmallPartSize() uint64 {
|
|||
// Small parts are cached in the OS page cache,
|
||||
// so limit their size by the remaining free RAM.
|
||||
mem := memory.Remaining()
|
||||
// It is expected no more than defaultPartsToMerge/2 parts exist
|
||||
// in the OS page cache before they are merged into bigger part.
|
||||
// Half of the remaining RAM must be left for lib/mergeset parts,
|
||||
// so the maxItems is calculated using the below code:
|
||||
n := uint64(mem) / defaultPartsToMerge
|
||||
if n < 10e6 {
|
||||
n = 10e6
|
||||
|
|
Loading…
Reference in a new issue