PDF (US Ltr)
- 1.0Mb
8.5 Creating a Channel
Note:
In MySQL replication, a replica is a MySQL server that receives changes from another MySQL server (source) and applies the changes. In HeatWave on AWS, a Channel references the replica as the target DB System.Use the HeatWave Console to create a channel. A channel connects
the source (an on-premises or other cloud MySQL Instance, or other HeatWave on AWS
DB System) to a target HeatWave on AWS
DB System (replica), and copies data changes from the source to the
target. There are two types of replication channels:
- Channels over public internet
- Channels over Egress PrivateLinks
This task requires the following:
- A MySQL source server that meets the requirements in Source Configuration.
- A replication user on the MySQL source server. See Creating a Replication User On a Source Server.
- An active DB System as the target of the Channel. If the source
server contains data, import existing data into the DB System:
- Export the data from the MySQL source server (see Exporting Data Using MySQL Shell for instructions) and:
- If using GTID-based replication: Capture the
value of the source server's system variable
gtid_executed
, from which replication should begin. The value is also available as metadata in thegtidExecuted
field in the@.json
dump file created by MySQL Shell's dump utilities. - If not using GTID-based replication: Capture the source server's binary log coordinates (the log file name and the log position), from which replication should begin. See Obtaining the Replication Source Binary Log Coordinates on how to do that.
- If using GTID-based replication: Capture the
value of the source server's system variable
- Import the data into the target DB System
(see Importing Data Using the Data Import Feature for instructions), and then:
- If using GTID-based replication: apply the
source's
gtid_executed
GTID set to the target'sgtid_purged
GTID set (see Update GTID set on how to do that). - If not using GTID-based replication: supply the binary log coordinates to the Replication Positioning settings when you create or edit a replication channel on the HeatWave Console.
- If using GTID-based replication: apply the
source's
- Export the data from the MySQL source server (see Exporting Data Using MySQL Shell for instructions) and:
- If you want to use a PrivateLink for the replication, a properly configured Egress PrivateLink. See Deploying an Egress PrivateLink.
Do the following to create a replication channel:
The state of the channel changes to Creating, and when the create
is complete, the status changes to one of the following:
- Inactive if Enabled automatically upon creation is disabled.
- Active if the channel is enabled successfully.
- Needs Attention if the channel encounters any error while enabling it. The replication cannot be started.
See the next section on the channel filter rules for configuring replication filters.