2022-06-20 15:52:55 +00:00
# Setup
We use `SysBench` to perform load testing.
https://github.com/akopytov/sysbench
2022-06-20 18:24:33 +00:00
Before starting the connectors, create the topic with max partitions
`rpk topic create SERVER5432.sbtest.sbtest1 -p 6`
2022-06-20 15:52:55 +00:00
To Run SysBench tests, run the `debezium-connector-setup-sysbench.sh` script in `deploy` folder to
create the MySQL debezium connector. The connector is setup to read from the `sbtest` table required by SysBench
For sink, the default `sink-connector-setup-schema-registry.sh` script can be executed to create
the ClickHouse Sink Connector.
2022-07-13 21:25:16 +00:00
## SysBench Tests
| SysBench Test | Status |
|-----------------------|--------|
| oltp_insert | Pass |
| oltp_read_write | Pass |
| oltp_update_index | Pass |
| oltp_update_non_index | Pass |
2022-07-15 21:23:19 +00:00
| oltp_delete | Pass |
| bulk_insert | Pass |
2022-07-13 21:25:16 +00:00
2022-06-20 15:52:55 +00:00
## Insert tests(SysBench)
2022-06-20 18:24:33 +00:00
`sysbench/run_sysbench_insert_load_test.sh` script executes the oltp_insert lua script in Sysbench.
2022-06-20 15:52:55 +00:00
## Update/Delete tests(SysBench)
## Performance Numbers
![](img/insert_performance_tests.png) \
`select database, table, event_type, partition_id, count() c, round(avg(rows)) from system.part_log
where event_date >= today() and event_type = 'NewPart'
group by database, table, event_type, partition_id
order by c desc`\
2022-06-21 20:59:33 +00:00
`
select sum(tmp.rows), tmp.event_time from (
select rows,event_time ,event_type from system.part_log pl where database='test' and table='sbtest1' and event_type='NewPart' order by event_time desc) tmp group by tmp.event_time`
2022-06-23 00:47:33 +00:00
With the SysBench insert tests(6 Kafka partitions), the following are the numbers we observed on 8-core i7 64 GB RAM instance.\
2022-06-20 15:52:55 +00:00
< b > ClickHouse Rows Insertion Rate: 9k/second, 2.1 MB/second.
## ClickHouse insertion rate
`select database, table, event_type, partition_id, count() c, round(avg(rows)) from system.part_log
where event_date >= today() and event_type = 'NewPart'
group by database, table, event_type, partition_id
2022-06-23 00:47:33 +00:00
order by c desc`
Target:
2022-07-27 15:01:52 +00:00
5 threads , 600k/second
## Binary logs
`show binary logs;`
`show binlog events in ` mysql-bin.000003`