I have a production VPS instance in London, UK (for example). It serves a website with upto 10000 queries per day. I have another instance in Dallas, US whose only duty is to keep in sync with the production server by pulling the data.
Is it a good idea (in the first place) to cluster MySQL over the internet? Will the production server degrade in performance if:
- as long as it’s link with the backup server is down
- if it has to sync a lot with the backup server as it’s been offline for hours.
Firstly: What you’re describing here would be a MySQL master/slave configuration, not MySQL clustering. (MySQL Cluster is an uncommon and quirky variant of MySQL; it’s almost certainly not what you want to use.)
Sure. Replication is good stuff.
Unless you’re severely bottlenecked on I/O, replication should not affect the performance of the master. If the slave (backup) server is expected to be offline for extended periods of time, make sure you’re keeping binlogs for a sufficient amount of time.