Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docker-compose-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ services:
volumes:
- ./tests_override.xml:/bitnami/clickhouse/etc/conf.d/override.xml:ro

clickhouse_db_2:
image: bitnami/clickhouse:latest
logging:
driver: "json-file"
options:
max-size: "100m"
environment:
- ALLOW_EMPTY_PASSWORD=no
- CLICKHOUSE_ADMIN_PASSWORD=admin
- CLICKHOUSE_ADMIN_USER=default
- CLICKHOUSE_HTTP_PORT=9124
networks:
default:
ports:
- 9124:9124
volumes:
- ./tests_override.xml:/bitnami/clickhouse/etc/conf.d/override.xml:ro

mysql_db:
image: mysql/mysql-server:8.0.32
environment:
Expand Down
25 changes: 25 additions & 0 deletions tests_config_cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

mysql:
host: 'localhost'
port: 9306
user: 'root'
password: 'admin'

clickhouse:
- host: 'localhost'
port: 9123
user: 'default'
password: 'admin'
- host: 'localhost'
port: 9124
user: 'default'
password: 'admin'

binlog_replicator:
data_dir: '/app/binlog/'
records_per_file: 100000

databases: '*test*'
log_level: 'debug'
optimize_interval: 3
check_db_updated_interval: 3
23 changes: 22 additions & 1 deletion tests_override.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,25 @@
<final>1</final>
</default>
</profiles>
</clickhouse>

<remote_servers>
<test_2shards>
<shard>
<replica>
<host>clickhouse_db</host>
<port>9000</port>
<user>default</user>
<password>admin</password>
</replica>
</shard>
<shard>
<replica>
<host>clickhouse_db_2</host>
<port>9000</port>
<user>default</user>
<password>admin</password>
</replica>
</shard>
</test_2shards>
</remote_servers>
</clickhouse>
Loading