简体   繁体   中英

MySQL Master Slave Replication between AWS and GCP

I have been working on a project in Mysql Master slave replication. I want to setup a master slave replication between AWS and GCP where AWS has the AWS RDS as the master and the slave or replica is in the GCP side. But I want to create this replica on GCP side without publicly exposing the master instance on AWS. That means this should happen in a private.network.

I have found solutions where we can create proxy for the master instance and then create replica on the GCP side using the Cloud SQL migration services. But this is not what what I want. I don't want to assign a proxy to the master instance.

The replica creation process should be within a private.network.

What should I do next? Help.

Also, please do let me know if the question is still unclear.

Create a Transit Gateway between AWS VPC and GCP private.network.

https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html

If private.network on the master (AWS) is a must, then this won't be possible. The documentation about using Cloud SQL as External replica is clear on the requirements for the source:

Ensure that the source database server meets these configuration requirements:

  • An externally accessible IPv4 address and TCP port.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM