How do I handle mysql replication in EC2 using private IPs?

Posted by chris on Server Fault See other posts from Server Fault or by chris
Published on 2012-12-17T17:31:12Z Indexed on 2012/12/18 5:04 UTC
Read the original article Hit count: 424

I am trying to set up a mysql master/slave configuration in two EC2 instances.

However, every time I reboot an instance, the IP address (and hostname) changes. I could assign an Elastic IP address, but would prefer to use the internal IP address.

I can't be the first person to do this, but I can't seem to find a solution. There are a lot of "getting started" guides, but none of them mention how to handle changing IP addresses. So what are the best practices to manage master/slave replication in EC2?

© Server Fault or respective owner

Related posts about mysql

Related posts about amazon-ec2