Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VictoriaLogs results for c6a.4xlarge #286

Merged
merged 3 commits into from
Jan 19, 2025
Merged

Conversation

valyala
Copy link
Contributor

@valyala valyala commented Jan 16, 2025

VictoriaLogs is a database for logs. It wasn't designed as analytical database, but it has been appeared that it provides enough functionality for ClickBench: it happily consumes hits.json via JSON lines data ingestion endpoint, and its' query language supports all the queries used in the ClickBench - see victorialogs/queries.logsql with all the queries translated into LogsQL ( https://docs.victoriametrics.com/victorialogs/logsql/ ). Fun fact - LogsQL queries are shorer than the corresponding SQL queries, and they are easier to read (YMMV) :)

VictoriaLogs doesn't need any table schema, so victorialogs folder has no create.sql file.

The resulting performance isn't so good comparing to ClickHouse, but there are a few queries, where VictoriaLogs provides better performance than ClickHouse because of bloom filters and "log streams" features. See https://docs.victoriametrics.com/victorialogs/keyconcepts/ . These features speed up "needle in the haystack" queries over large volumes of logs, which do not fit RAM, such as "search for logs with the given trace_id". Such queries are typical during logs' exploration.

@CLAassistant
Copy link

CLAassistant commented Jan 16, 2025

CLA assistant check
All committers have signed the CLA.

VictoriaLogs is a database for logs. It wasn't designed as analytical database,
but it has been appeared that it provides enough functionality for ClickBench:
it happily consumes hits.json via JSON lines data ingestion endpoint,
and its' query language supports all the queries used in the ClickBench -
see victorialogs/queries.logsql with all the queries translated into LogsQL
( https://docs.victoriametrics.com/victorialogs/logsql/ ).
Fun fact - LogsQL queries are shorer than the corresponding SQL queries,
and they are easier to read (YMMV) :)

VictoriaLogs doesn't need any table schema, so victorialogs folder has no create.sql file.

The resulting performance isn't so good comparing to ClickHouse, but there are a few queries,
where VictoriaLogs provides better performance than ClickHouse because of bloom filters
and "log streams" features. See https://docs.victoriametrics.com/victorialogs/keyconcepts/ .
These features speed up "needle in the haystack" queries over large volumes of logs,
which do not fit RAM, such as "search for logs with the given trace_id".
Such queries are typical during logs' exploration.
"load_time": 1265,
"data_size": 17110607560,
"result": [
[0.03, 0.013, 0.014],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to reproduce the measurements locally.

@rschu1ze rschu1ze merged commit bfd3933 into ClickHouse:main Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants