ClickHouse Cloud Setup Guide
We recently announced the Postgres CDC connector in ClickPipes, now available in Private Preview. This connector is fully powered by PeerDB.
As a ClickHouse Cloud customer, you get a seamless, native experience for moving data from your Postgres databases to ClickHouse Cloud. Simply navigate to the Data Sources tab and add a Postgres source to start ingesting data.
👉 You can sign up to the private preview by following this link. Our team will provide access within a day or 2.
This is a document on setting a Clickhouse Cloud peer for PeerDB.
If you are using ClickHouse Cloud, we recommend using PeerDB Cloud, which comes with free trial and highly competitive pricing and PeerDB Cloud is specifically designed for ClickHouse Cloud.
Steps on setting up the ClickHouse Cloud peer
Head over the SQL Console in the ClickHouse Cloud UI.
Clickhouse Cloud SQL Console
Permissions
- Create a separate database for the ClickHouse peer called peerdb. This is where tables will be auto-created and synced by PeerDB.
- Create a Clickhouse user for PeerDB with the following permissions:
Whitelist PeerDB Cloud IPs
If you are using PeerDB Cloud, you need to whitelist the PeerDB Cloud IPs in the ClickHouse Cloud settings tab.
Clickhouse Cloud SQL Console
You can find the IPs of your PeerDB instance here.
- 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 when creating the Clickhouse peer (as seen below).
- 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 PeerDB UI
Enter all the details
Create ClickHouse Peer
Name
,Host
,Port
(as determined above),User
,Password
andDatabase
. - Click on
Validate
to ensure that the connection is successful. - Click on
Create
to create the ClickHouse Peer.
Troubleshooting
Here is a list of some validation errors that you might encounter and how to resolve them:
You may need to disable TLS
You may need to disable TLS. Validation errors such as the following may occur if the connection is not successful:
EOF
If you see the following error, it means that the connection to the ClickHouse peer could not be established:
Please try the following:
- Ensure that the PeerDB IP is whitelisted in the ClickHouse server. If you are using PeerDB Cloud, you can find the IPs of your PeerDB instance here.
- You may need to enable TLS.
Stuck on Validating…
This means the port entered is incorrect. Please ensure that the port is correct and the ClickHouse server is reachable from the PeerDB server.