freehere107 / esvsch

compare elastic and clickhouse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ElasticSearch VS. Clickhouse Query Test

compare query performance elastic and clickhouse

How to

Start ES stack, in elastic directory, run docker-compose up. Kibana is running on port 5601.

Start Clickhouse stack, in clickhouse directory, run docker-compose up. TabixUI is running on port 18080. run sql script init.sql to to create log table in clickhouse.

Start vector container by running make start in vector directory to generate syslog data, and exported into ES and Clickhouse stack. The data ingestion pipeline is defined in file vector.toml

Run notebook in directory notebook by command make run, make docker is required to build the docker image first. The notebook can be accessed at port 8888.

Reference

Clickhouse Python SDK

https://github.com/mymarilyn/clickhouse-driver

ES Python SDK

Python SDK https://elasticsearch-py.readthedocs.io/en/v7.11.0/

About ES query DSL

  1. https://www.slideshare.net/knoldus/query-dsl-in-elasticsearch?from_action=save
  2. https://www.tutorialspoint.com/elasticsearch/elasticsearch_query_dsl.htm
  3. https://hackernoon.com/how-to-master-elasticsearch-query-dsl-454632cg

About

compare elastic and clickhouse

License:Apache License 2.0


Languages

Language:Jupyter Notebook 99.3%Language:Makefile 0.4%Language:Dockerfile 0.2%Language:Shell 0.1%