Aliaksandr Valialkin
639b3091b5
wip
2024-05-15 15:46:42 +02:00
Roman Khavronenko
4f0525852f
app/vmalert/datasource: reduce number of allocations when parsing instant responses ( #6272 )
...
Allocations are reduced by implementing custom json parser via fastjson
lib.
The change also re-uses `promInstant` object in attempt to reduce number
of
allocations when parsing big responses, as usually happens with heavy
recording rules.
```
name old allocs/op new allocs/op delta
ParsePrometheusResponse/Instant-10 9.65k ± 0% 5.60k ± 0% ~ (p=1.000 n=1+1)
```
Signed-off-by: hagen1778 <roman@victoriametrics.com>
---------
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-15 15:18:33 +02:00
Aliaksandr Valialkin
6f798c628f
wip
2024-05-15 13:23:51 +02:00
Aliaksandr Valialkin
d3e464a68b
wip
2024-05-15 13:07:15 +02:00
Aliaksandr Valialkin
21f09ab823
wip
2024-05-15 12:15:16 +02:00
Aliaksandr Valialkin
87de9936f9
Merge branch 'public-single-node' into victorialogs-wip
2024-05-15 12:10:08 +02:00
Aliaksandr Valialkin
6fdba8599d
docs/VictoriaLogs/CHANGELOG.md: cut v0.7.0-victorialogs
2024-05-15 04:58:05 +02:00
Aliaksandr Valialkin
0aa19a2837
lib/logstorage: work-in-progress
2024-05-15 04:55:44 +02:00
Aliaksandr Valialkin
20918a2810
wip
2024-05-15 04:42:03 +02:00
Aliaksandr Valialkin
a080c9e4e5
wip
2024-05-15 04:03:05 +02:00
Aliaksandr Valialkin
12fe2b265c
wip
2024-05-15 03:55:46 +02:00
Aliaksandr Valialkin
ff2b6fbe35
wip
2024-05-15 03:23:33 +02:00
Aliaksandr Valialkin
fcce0fc6e1
wip
2024-05-15 03:02:05 +02:00
Aliaksandr Valialkin
edd493431e
wip
2024-05-15 02:52:23 +02:00
Aliaksandr Valialkin
33a01c659b
wip
2024-05-15 02:45:43 +02:00
Aliaksandr Valialkin
42c49c37ff
wip
2024-05-14 22:34:45 +02:00
Aliaksandr Valialkin
87183112f3
wip
2024-05-14 22:31:21 +02:00
Aliaksandr Valialkin
f26d593c7b
wip
2024-05-14 22:11:51 +02:00
Aliaksandr Valialkin
447a7f0bdf
wip
2024-05-14 19:35:08 +02:00
Aliaksandr Valialkin
388b608a6e
Merge branch 'public-single-node' into victorialogs-wip
2024-05-14 19:05:18 +02:00
Aliaksandr Valialkin
b617dc9c0b
lib/streamaggr: properly return output key from getOutputKey
...
The bug has been introduced in cc2647d212
2024-05-14 17:47:21 +02:00
Roman Khavronenko
b0c1f3d819
app/vmalert/rule: reduce number of allocations for getStaleSeries fn ( #6269 )
...
Allocations are reduced by re-using the byte buffer when converting
labels to string keys.
```
name old allocs/op new allocs/op delta
GetStaleSeries-10 703 ± 0% 203 ± 0% ~ (p=1.000 n=1+1)
```
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-14 14:43:39 +02:00
Nikolay
6a6e34ab8e
app/vmauth: explicitly unregister metrics set for auth config ( #6252 )
...
it's needed to remove Summary metric type from the global state of
metrics package. metrics package tracks each bucket of summary and
periodically swaps old buckets with new.
Simple set unregister is not enough to release memory used by Set
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6247
2024-05-14 09:26:50 +02:00
Aliaksandr Valialkin
c90e6de13b
docs/VictoriaLogs/CHANGELOG.md: cut v0.6.1-victorialogs
2024-05-14 03:06:53 +02:00
Aliaksandr Valialkin
da3af090c6
lib/logstorage: work-in-progress
2024-05-14 03:05:03 +02:00
Aliaksandr Valialkin
2314cdc38d
wip
2024-05-14 03:04:11 +02:00
Aliaksandr Valialkin
1834c68250
lib/logstorage/pipe_sort.go: wip
2024-05-14 02:03:59 +02:00
Aliaksandr Valialkin
cb35e62e04
lib/logstorage: work-in-progress
...
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6258
2024-05-14 01:49:23 +02:00
Aliaksandr Valialkin
5c4679ba01
Merge branch 'public-single-node' into victorialogs-wip
2024-05-14 01:41:28 +02:00
Aliaksandr Valialkin
cc2647d212
lib/encoding: optimize UnmarshalVarUint64, UnmarshalVarInt64 and UnmarshalBytes a bit
...
Change the return values for these functions - now they return the unmarshaled result plus
the size of the unmarshaled result in bytes, so the caller could re-slice the src for further unmarshaling.
This improves performance of these functions in hot loops of VictoriaLogs a bit.
2024-05-14 01:23:54 +02:00
Aliaksandr Valialkin
f51915f31c
Merge branch 'public-single-node' into victorialogs-wip
2024-05-14 00:56:25 +02:00
Aliaksandr Valialkin
b03c672227
wip
2024-05-14 00:50:32 +02:00
Aliaksandr Valialkin
dafd45d4c6
wip
2024-05-14 00:05:48 +02:00
Aliaksandr Valialkin
e6570f22d0
wip
2024-05-13 23:56:49 +02:00
Aliaksandr Valialkin
435506b223
wip
2024-05-13 23:44:44 +02:00
Aliaksandr Valialkin
812dfd9465
wip
2024-05-13 23:25:29 +02:00
Aliaksandr Valialkin
f0c48e35d3
wip
2024-05-13 22:56:22 +02:00
Aliaksandr Valialkin
aa21c9492e
wip
2024-05-13 22:30:03 +02:00
Aliaksandr Valialkin
69a6543609
wip
2024-05-13 22:12:18 +02:00
Aliaksandr Valialkin
707f3a69db
lib/stringsutil: add LessNatural() function for natural sorting
...
Natural sorting is needed for sort_by_label_natural() and sort_by_label_natural_desc()
functions in MetricsQL - see https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6192
and https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6256
Natural sorting will be also used by `| sort ...` pipe in VictoriaLogs -
see https://docs.victoriametrics.com/victorialogs/logsql/#sort-pipe
2024-05-13 16:56:47 +02:00
Aliaksandr Valialkin
52f08d7a19
wip
2024-05-13 16:52:54 +02:00
Aliaksandr Valialkin
900e558678
wip
2024-05-13 16:45:34 +02:00
Hui Wang
4c80b17027
storage: correctly apply -inmemoryDataFlushInterval
when it's set t… ( #6221 )
...
…o minimum supported value 1s
pendingRowsFlushInterval was bumped to 2s in
73f0a805e2
2024-05-13 16:44:30 +02:00
Andrii Chubatiuk
ce25d68b45
lib/streamaggr: added rate_sum and rate_avg to benchmarks, lint fix ( #6264 )
...
fixed lint for rate outputs
2024-05-13 16:40:37 +02:00
Aliaksandr Valialkin
9673da2578
Merge branch 'public-single-node' into victorialogs-wip
2024-05-13 16:37:03 +02:00
Aliaksandr Valialkin
75509644bd
wip
2024-05-13 16:07:36 +02:00
Aliaksandr Valialkin
09e81cb5aa
wip
2024-05-13 15:59:25 +02:00
Andrii Chubatiuk
9c3d44c8c9
lib/streamaggr: added rate and rate_avg output ( #6243 )
...
Added `rate` and `rate_avg` output
Resource usage is the same as for increase output, tested on a benchmark
---------
Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-05-13 15:39:49 +02:00
hagen1778
17283fab6c
lib/logstorage: make linter happy
...
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-13 15:35:11 +02:00
Andrii Chubatiuk
680b8c25c8
app/vmagent: removed deprecated -remoteWrite.multitenantURL flag support ( #6253 )
...
Removed deprecated `-remoteWrite.multitenantURL` flag to simplify global
stream aggregation
---------
Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-05-13 15:22:37 +02:00