I'm migrating a rather busy site to another server cluster.
The site with a MySQL master and two slave servers. I'd like to have as little downtime as possible during the switch, and my biggest concern is the time it takes for the DNS change to propogate.
The master database server operates under mysql.domain.com.
My thought was to copy the master database to our new server, and then switch DNS for mysql.domain.com to the IP of the new master. However, this will mean that I'll have requests coming to both master servers until DNS has propogated world-wide, causing havoc with my data.
My plan is to alter the /etc/hosts file on the old master server, so that any requests for mysql.domain.com go to the IP of the new server.
Does anyone see potential hazards with this?