0

We've a Mariadb primary replica configuration on AWS ec2 instances. Can a 2nd replica be added by using AMI of 1st replica including root+ data ebs volumes? If AMI can be used to launch a new ec2 instance for 2nd replica what are the config's to consider like /etc/hosts, /etc/hostname, /etc/mysql/my.cnf for including this in replication from primary?

Mariadb 10.6 on Ubuntu 20.04.6

3
  • And "server_id". Commented Sep 19 at 1:23
  • Thanks @RickJames -- yes updated server_id to be unique in replication topology. Another point to share, we took the AMI while Mariadb was running, it did perform crash recovery when used that image to launch a new instance. Haven't found this method being used so not sure if this strategy has any implications that discourages it. Commented Oct 1 at 4:53
  • If AMI is a "Machine Image", then that is probably the best way. Commented Oct 2 at 23:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.