Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Supported versions
To propagate data from your AlloyDB instance to ClickHouse Cloud using ClickPipes, your instance must be configured for logical replication. This is supported from AlloyDB Version 14.Enable logical replication
To check if logical replication is enabled in your AlloyDB instance, run the following query against your primary instance:logical, logical replication is already enabled and you can skip to the next step. If the result is replica, you must set the alloydb.enable_pglogical and alloydb.logical_decoding flags to on in the primary instance.
To enable these flags:
- In the Google Cloud Console, navigate to the AlloyDB Clusters page. From the Actions menu for your primary instance, click Edit.
-
Scroll down to Advanced configuration options and expand the section. Under Flags, click Add a database flag.
- Add the
allowdb.enable_pglogicalflag and set its value toon - Add the
alloydb.logical_decodingflag and set its value toon
- Add the
- Click Update instance to save the configuration changes. It’s important to note that this action triggers a restart of the primary instance.
-
Once the status of the instance changes from
UpdatingtoReady, run the following query against your primary instance to verify that logical replication is enabled:The result should belogical.
Create a ClickPipes user and manage replication permissions
Connect to your AlloyDB instance as an admin user and execute the following commands:-
Create a dedicated user for ClickPipes:
-
Grant schema-level, read-only access to the user you created in the previous step. The following example shows permissions for the
publicschema. Repeat these commands for each schema containing tables you want to replicate: -
Grant replication privileges to the user:
- Create a publication with the tables you want to replicate. We strongly recommend only including the tables you need in the publication to avoid performance overhead.
-
To create a publication for specific tables:
-
To create a publication for all tables in a specific schema:
clickpipes publication will contain the set of change events generated from the specified tables, and will later be used to ingest the replication stream.
Configure network access
ClickPipes doesn’t support Private Service Connect (PSC) connections. If you don’t allow public access to your AlloyDB instance, you can use an SSH tunnel to connect securely. PSC will be supported in the future.
- Allow ClickPipes IPs
- Use an SSH tunnel
- In the Google Cloud Console, navigate to the AlloyDB Clusters page. Select your primary instance to open the Overview page.
- Scroll down to Instances in your cluster and click Edit primary.
- Check the Enable Public IP checkbox to allow connections to the instance over the public internet. Under Authorized external networks, enter the list of ClickPipes static IP addresses for the region your service is deployed in.
AlloyDB expects addresses to be specified in CIDR notation. You can adapt the provided list of ClickPipes static IP addresses to follow this notation by appending
/32 to each address.- Under Network Security, select Require SSL Encryption (default) (if not already selected).
- Click Update instance to save the network security configuration changes.