Commit graph

84 commits

Author SHA1 Message Date
Aliaksandr Valialkin
feeff5b8ef
Merge branch 'public-single-node' into victorialogs-wip 2024-05-25 21:35:18 +02:00
Aliaksandr Valialkin
7916bb2789
wip 2024-05-25 20:45:11 +02:00
Aliaksandr Valialkin
1416b5f813
wip 2024-05-25 20:13:01 +02:00
Aliaksandr Valialkin
41547740f6
wip 2024-05-25 20:05:30 +02:00
Aliaksandr Valialkin
38646a0491
wip 2024-05-25 19:42:11 +02:00
Aliaksandr Valialkin
c95ae93b58
wip 2024-05-25 19:24:21 +02:00
Aliaksandr Valialkin
b83024330f
wip 2024-05-25 18:26:07 +02:00
Aliaksandr Valialkin
bbb9887ccf
wip 2024-05-25 17:29:24 +02:00
Aliaksandr Valialkin
22c2671205
wip 2024-05-25 16:09:59 +02:00
Aliaksandr Valialkin
46bc1c3435
wip 2024-05-25 15:51:47 +02:00
Aliaksandr Valialkin
33610de341
wip 2024-05-25 14:37:26 +02:00
Aliaksandr Valialkin
e93a71d741
wip 2024-05-25 11:59:47 +02:00
Aliaksandr Valialkin
c2050495c4
wip 2024-05-25 10:51:44 +02:00
Aliaksandr Valialkin
e2590f0485
lib/logstorage: work-in-progress 2024-05-25 00:30:58 +02:00
Aliaksandr Valialkin
7654bd60f8
wip 2024-05-25 00:22:14 +02:00
Aliaksandr Valialkin
f8e034f061
wip 2024-05-24 22:17:21 +02:00
Aliaksandr Valialkin
aa23832921
wip 2024-05-24 19:45:43 +02:00
Aliaksandr Valialkin
b59ed0bc79
wip 2024-05-24 19:20:46 +02:00
Aliaksandr Valialkin
a15a56def0
wip 2024-05-24 19:04:24 +02:00
Aliaksandr Valialkin
37ff352ed5
wip 2024-05-24 18:54:58 +02:00
Aliaksandr Valialkin
a3032067bd
wip 2024-05-24 18:31:49 +02:00
Aliaksandr Valialkin
4b458370c1
lib/logstorage: work-in-progress 2024-05-24 03:06:55 +02:00
Aliaksandr Valialkin
869b2fabc4
wip 2024-05-24 03:03:12 +02:00
Aliaksandr Valialkin
03b9d7977d
wip 2024-05-23 22:54:21 +02:00
Aliaksandr Valialkin
59d52cec67
wip 2024-05-23 21:47:21 +02:00
Aliaksandr Valialkin
a686c7dd74
wip 2024-05-23 13:58:30 +02:00
Aliaksandr Valialkin
e3cbf97bdd
wip 2024-05-23 12:24:09 +02:00
Aliaksandr Valialkin
a4337149a2
wip 2024-05-23 12:01:15 +02:00
Alexander Marshalov
7da541360e
[vmlogs] fixed time parsing with millisecond precision time (#6293) (#6295)
fix for #6293

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2024-05-22 21:46:50 +02:00
Aliaksandr Valialkin
22107421eb
lib/logstorage: work-in-progress 2024-05-22 21:01:20 +02:00
Aliaksandr Valialkin
bc4a0b8f37
lib/logstorage: fix golangci-lint warnings 2024-05-20 11:04:12 +02:00
Aliaksandr Valialkin
ad505a7a9a
lib/logstorage: work-in-progress 2024-05-20 04:08:30 +02:00
Aliaksandr Valialkin
0aa19a2837
lib/logstorage: work-in-progress 2024-05-15 04:55:44 +02:00
Aliaksandr Valialkin
da3af090c6
lib/logstorage: work-in-progress 2024-05-14 03:05:03 +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
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
hagen1778
17283fab6c
lib/logstorage: make linter happy
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-13 15:35:11 +02:00
Aliaksandr Valialkin
9dbd0f9085
lib/logstorage: initial implementation of pipes in LogsQL
See https://docs.victoriametrics.com/victorialogs/logsql/#pipes
2024-05-12 16:33:31 +02:00
Aliaksandr Valialkin
590160ddbb
lib/slicesutil: add helper functions for setting slice length and extending its capacity
The added helper functions - SetLength() and ExtendCapacity() - replace error-prone code with simple function calls.
2024-05-12 11:32:17 +02:00
wanshuangcheng
83216e956c
chore: fix function names in comment (#6076)
Signed-off-by: wanshuangcheng <wanshuangcheng@outlook.com>
2024-04-08 01:11:12 -07:00
Aliaksandr Valialkin
918cccaddf
all: fix golangci-lint(revive) warnings after 0c0ed61ce7
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6001
2024-04-02 23:16:29 +03:00
XLONG96
a5795f533d
lib/logstorage: avoid panic when parsing regex with stream filter (#5897) 2024-02-29 15:31:54 +02:00
Aliaksandr Valialkin
4617dc8bbe
lib/logstorage: consistently use atomic.* types instead of atomic.* functions on regular types
See ea9e2b19a5
2024-02-23 23:46:13 +02:00
Aliaksandr Valialkin
f81b480905
lib/mergeset: consistently use atomic.* types instead of atomic.* function calls on ordinary types
See ea9e2b19a5
2024-02-23 23:29:35 +02:00
Aliaksandr Valialkin
275335c181
lib/logstorage: consistently use atomic.* type for refCount and mustDrop fields in datadb and storage structs in the same way as it is used in lib/storage
See ea9e2b19a5 and a204fd69f1
2024-02-23 23:04:42 +02:00
Aliaksandr Valialkin
0514091948
app/vlselect: follow-up for 451d2abf50
- Consistently return the first `limit` log entries if the total size of found log entries doesn't exceed 1Mb.
  See app/vlselect/logsql/sort_writer.go . Previously random log entries could be returned with each request.
- Document the change at docs/VictoriaLogs/CHANGELOG.md
- Document the `limit` query arg at docs/VictoriaLogs/querying/README.md
- Make the change less intrusive.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5674
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5778
2024-02-18 23:05:51 +02:00
Dmytro Kozlov
451d2abf50
Enable the limit query param for the /select/logsql/query (#5778)
* app/vlselect: add limit for logs query

* app/vlselect: CHANGELOG.md

* app/vlselect: stop search process if limit is reached, update logic, remove default limit

* app/vlselect: fix tests

* app/vlselect: fix filter tests

* app/vlselect: fix tests
2024-02-18 22:58:47 +02:00
noodles2hg
cafd6f08b3
lib/logstorage: proper exit during block search (#5400) 2024-02-01 12:11:05 +00:00
Jiajing LU
333bda8702
count inmemoryParts that have not been taken for merge (#5447) 2024-02-01 12:06:28 +00:00
Aliaksandr Valialkin
2655c02d5e
lib/logstorage: make sure that WaitGroup.Add isnt called after stopCh is closed and WaitGroup.Wait is called
This protects from rare panic, which may occur during graceful shutdown of VictoriaLogs
2024-01-26 21:17:02 +01:00