When installing cluster monitoring, the platform provides two log storage components for your choice: ElasticSearch and Clickhouse. This article will detail the features and applicable scenarios of these two components to help you make the most suitable choice.
ElasticSearch is an open-source distributed search engine built on Lucene, designed for fast full-text search and analysis. Its advantages include:
Clickhouse is a high-performance columnar database designed for Online Analytical Processing (OLAP). Its advantages include:
Clickhouse | Elasticsearch | Explanation | |
---|---|---|---|
High Availability | Supported | Supported | |
Scalability | Supported | Supported | |
Query Experience | Weak | Strong | Elasticsearch offers more robust search capabilities based on the Lucene language, while Clickhouse only supports SQL queries, limiting its search capabilities. |
Resource Usage | Low | High | For the same performance requirements, Clickhouse requires fewer resources than Elasticsearch. For example, to support 20,000 logs per second, Elasticsearch needs 3 es-masters and 7 es-nodes (2c4g+8c16g), while Clickhouse only requires 3 2c4g replicas. |
Performance | High | Low | Under the same resource conditions, the log volume supported by Clickhouse far exceeds that of Elasticsearch. |
Community Activity | Medium | High | The Elasticsearch community is active with rich documentation, while Clickhouse is a growing and improving community. |
If you are accustomed to using Elasticsearch and have a high dependency on the Lucene language, it is recommended that you continue to use the ACP Log Storage with ElasticSearch plugin.
If you depend on the platform's Jenkins pipeline or service mesh features, it is recommended that you continue to use the ACP Log Storage with ElasticSearch plugin.
If you have high requirements for the performance and resource consumption of the log component but only have basic needs for log querying, it is recommended that you choose to use the ACP Log Storage with Clickhouse plugin.