mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
7cb894a777
The main change is getting rid of interning of sample key. It was discovered that for cases with many unique time series aggregated by vmagent interned keys could grow up to hundreds of millions of objects. This has negative impact on the following aspects: 1. It slows down garbage collection cycles, as GC has to scan all inuse objects periodically. The higher is the number of inuse objects, the longer it takes/the more CPU it takes. 2. It slows down the hot path of samples aggregation where each key needs to be looked up in the map first. The change makes code more fragile, but suppose to provide performance optimization for heavy-loaded vmagents with stream aggregation enabled. --------- Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com> |
||
---|---|---|
.. | ||
avg.go | ||
count_samples.go | ||
count_series.go | ||
dedup.go | ||
dedup_test.go | ||
dedup_timing_test.go | ||
deduplicator.go | ||
deduplicator_test.go | ||
deduplicator_timing_test.go | ||
histogram_bucket.go | ||
last.go | ||
max.go | ||
min.go | ||
quantiles.go | ||
rate.go | ||
stddev.go | ||
stdvar.go | ||
streamaggr.go | ||
streamaggr_test.go | ||
streamaggr_timing_test.go | ||
sum_samples.go | ||
total.go | ||
unique_samples.go |