clickhouse-sink-connector/README.md

48 lines
1.7 KiB
Markdown
Raw Normal View History

# Altinity Sink Connector for ClickHouse
2022-04-01 12:00:03 +00:00
Sink connector sinks data from Kafka into Clickhouse.
The connector is tested with the following converters
- JsonConverter
2022-08-09 22:29:25 +00:00
- AvroConverter (Using [Apicurio Schema Registry](https://www.apicur.io/registry/) or Confluent Schema Registry)
![](doc/img/sink_connector_mysql_architecture.jpg)
# Features
2022-06-29 19:48:01 +00:00
- Inserts, Updates and Deletes using ReplacingMergeTree/CollapsingMergeTree - [Updates/Deletes](doc/mutable_data.md)
- Deduplication logic to dedupe records from Kafka topic.(Based on Primary Key)
- Exactly once semantics
2022-06-29 19:48:01 +00:00
- Bulk insert to Clickhouse.
- Store Kafka metadata [Kafka Metadata](doc/Kafka_metadata.md)
2022-06-29 19:48:01 +00:00
- Kafka topic to ClickHouse table mapping, use case where MySQL table can be mapped to a different CH table name.
- Store raw data in JSON(For Auditing purposes)
- Monitoring(Using Grafana/Prometheus) Dashboard to monitor lag.
- Kafka Offset management in ClickHouse
- Increased Parallelism(Customize thread pool for JDBC connections)
2022-04-01 12:00:03 +00:00
### Grafana Dashboard
![](doc/img/Grafana_dashboard.png)
# Source Databases
- MySQL (Debezium)
- PostgreSQL (Debezium) (Testing in progress)
### Quick Start
Docker image for Sink connector `altinity/clickhouse-sink-connector:latest`
https://hub.docker.com/r/altinity/clickhouse-sink-connector
### MySQL:
```bash
cd deploy/docker
./start-docker-compose.sh
```
For detailed instructions [Setup](doc/setup.md)
## Documentation
- [Data Types](doc/DataTypes.md)
- [Architecture](doc/architecture.md)
- [Local Setup - Docker Compose](doc/setup.md)
2022-08-29 12:06:40 +00:00
- [Debezium Setup](doc/debezium_setup.md)
- [Kubernetes Setup](doc/k8s_pipeline_setup.md)
- [Sink Configuration](doc/sink_configuration.md)
- [Testing](doc/TESTING.md)
2022-08-09 22:29:25 +00:00
- [Performance Benchmarking](doc/Performance.md)