VictoriaMetrics/lib/streamaggr
Aliaksandr Valialkin 52c13e9515
lib/streamaggr: follow-up for 736197179e
- Use a byte slice instead of a map for tracking indexes for matching series.
  This improves performance, since access by slice index is faster than access by map key.
- Re-use the byte slice for tracking indexes for matching series.
  This removes unnecessary memory allocations and improves stream aggregation performance a bit.
- Add an ability to return to the previous behvaiour by specifying -remoteWrite.streamAggr.dropInput command-line flag.
  In this case all the input samples are dropped when stream aggregation is enabled.
- Backport the new stream aggregation behaviour from vmagent to single-node VictoriaMetrics when -streamAggr.config
  option is set.
- Improve docs regarding this change at docs/CHANGELOG.md
- Document the new behavior at docs/stream-aggregation.md

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4243
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4575
2023-07-24 17:05:26 -07:00
..
avg.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
count_samples.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
count_series.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
histogram_bucket.go lib/streamaggr: follow up for 70773f53d7 2023-07-20 21:44:24 -07:00
increase.go lib/streamaggr: follow up for 70773f53d7 2023-07-20 21:44:24 -07:00
last.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
max.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
min.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
quantiles.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
stddev.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
stdvar.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
streamaggr.go lib/streamaggr: follow-up for 736197179e 2023-07-24 17:05:26 -07:00
streamaggr_test.go lib/streamaggr: follow-up for 736197179e 2023-07-24 17:05:26 -07:00
streamaggr_timing_test.go lib/streamaggr: follow-up for 736197179e 2023-07-24 17:05:26 -07:00
sum_samples.go app/{vmagent,vminsert}: add support for streaming aggregation 2023-01-03 22:19:21 -08:00
total.go lib/streamaggr: follow up for 70773f53d7 2023-07-20 21:44:24 -07:00