Phuong Le (@func25) header
Phuong Le (@func25) profile picture

Software Engineer @VictoriaMetrics, building VictoriaLogs

Joined August 2014
Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)Photo by Phuong Le (@func25)
Phuong Le retweeted
The Elasticsearch team at @elastic forked my open logs benchmark, reran it, and wrote up how they took it from 52k to 112k lines/s, most of it from a new columnar mode still in preview. Their rerun of VictoriaLogs matched my numbers within a few percent. This is how benchmarks should work. Publish the harness, let others poke at it, reproduce it, improve. The people who win are the users running these systems at 3am.
1
2
21
1,249
The `-eula` command-line flag is returned back in VictoriaMetrics enterprise components starting from v1.157.0! This simplifies evaluation of enterprise features. See the list of enterprise features at docs.victoriametrics.com/vic…
VictoriaMetrics v1.157.0 highlights
2
16
1,026
VictoriaMetrics v1.157.0 highlights
5
1
19
1,652
Great explainer video on VictoriaLogs v1.55.0 changes. Thanks to @func25 for creating the video!
VictoriaLogs v1.55.0 highlights
2
23
1,156
VictoriaLogs v1.55.0 highlights
5
1
24
2,288
Phuong Le retweeted
sweet summer child 🥺
block ip 63.250.52.29 ps: there needs to be a global malicious ip registry and some sort of public ip credit score this probe thats sending 62k requests to our endpoints is blocked for us now but doubtful that we are the only target. I should be able to flag their ip as a probe and let other people know feels like a no-brainer for @Cloudflare
21
32
3
1,455
78,114
4
11
380
Replying to @func25
@func25 published new explainer video on how VictoriaLogs stores data on disk in order to provide high query performance over hundreds of terabytes of logs. Highly recommended to view!
1
31
1,028
Columnar storage, bloom filters, delta-of-delta/zstd/dictionary compression, indexes, etc in a logs database will all be explained in this video.
1
12
1
151
5,428
Phuong Le retweeted
I spent 3 months benchmarking and digging into the internals of Loki, Elasticsearch, OpenSearch, ClickStack, SigNoz and VictoriaLogs, and condensed it into a 20-minute read. TL;DR: I realized who ingests fastest is only one side of the story. Every fast number had a price. I abused each of them with a flood of structured, Kubernetes-style logs on identical machines, until they choked. 1. Loki ingested the most: 139k lines/s. It indexes only stream labels and keeps lines as plain text, pushing the cost to query time. Any search or aggregation on a field, the kind every dashboard runs, is expensive and can take minutes: Loki has to decompress and scan every line in matching streams. 2. Elasticsearch finds a single word almost instantly, because it indexes every word of every line. The price: all that indexing is CPU-heavy, so it topped out at 48k lines/s. And it needed almost 5x the disk of VictoriaLogs. 3. SigNoz and ClickStack store logs in ClickHouse, a columnar database like VictoriaLogs. I expected them to be close. They only reached 10k and 46k lines/s. The bottleneck wasn't ClickHouse. It was the OpenTelemetry collector in front of it, which used more CPU than ClickHouse itself. 4. VictoriaLogs (I work on it) ingested 120k lines/s with the least memory and disk. It stores each field in its own column and reads only the columns a query needs, so every test query returned within seconds. The catch: it shines on structured logs, where columns help most. On plain-text logs (from older apps or network devices), it still works, but loses most of its edge.
Replying to @cuongleqq
@cuongleqq published data ingestion benchmark results for open-source databases for logs: VictoriaLogs, Loki, Elasticsearch, OpenSearch, SigNoz and ClickStack (the last two are based on ClickHouse). The benchmark measures CPU usage, memory usage, disk space usage and disk IO usage for different ingestion rates of Kubernetes-like logs. It also measures performance for production-like queries. Hint: VictoriaLogs isn't the fastest one for data ingestion. victoriametrics.com/blog/str…
1
1
24
1,018
How the empty interface in Go works under the hood youtu.be/_BxdvkLLnDc?si=Xlot…
3
21
241
8,405
Replying to @cuongleqq
@cuongleqq published data ingestion benchmark results for open-source databases for logs: VictoriaLogs, Loki, Elasticsearch, OpenSearch, SigNoz and ClickStack (the last two are based on ClickHouse). The benchmark measures CPU usage, memory usage, disk space usage and disk IO usage for different ingestion rates of Kubernetes-like logs. It also measures performance for production-like queries. Hint: VictoriaLogs isn't the fastest one for data ingestion. victoriametrics.com/blog/str…
2
4
2
61
5,828
VictoriaMetrics v1.55.0 highlights
2
15
837
Excellent animations AND tech content! #golang
Escape analysis in Go: stack or heap? youtube.com/watch?v=BanG_wLn… Tbh, every second is worth it, even if you don't know Go. I wish someone had taught me this when I was learning Go.
1
6
387