Setup
ClickHouse Setup Guide
- Create a separate database for the ClickHouse peer called peerdb. This is where tables will be auto-created and synced by PeerDB.
CREATE DATABASE peerdb;
- Make sure you have a database user who has permissions for DDL, DML and SELECT operations on ClickHouse.
- ClickHouse has several ports exposed, and PeerDB requires to use a port that exposes the
ClickHouse native protocol
which by default is9440
for the secure TLS-enabled port and9000
for the non-TLS port. If the default ports have been changed, please adjust them accordingly.
We do not recommend using the non-TLS enabled port for ClickHouse. If this is needed, please also check the Disable TLS?
option.
- If you are using PeerDB OSS, we use MinIO as the internal transient stage. You might need to adjust your firewall rules to allow connections from ClickHouse to MinIO. In PeerDB Cloud, we abstract all of this from you. If you run into issues, please reach out to support@peerdb.io or join our Slack channel.
- Create the ClickHouse Peer through UI
Enter all the details
Choose PostgreSQL Peer
Name
,Host
,Port
(as determined above),User
,Password
andDatabase
along with S3 credentials to setup the peer.