Hi There,
I'm looking to create a MySQL replication using MySQL 5.1 and SSL. We plan to have a master - slave replication. We are planning to run this replication over a 1.5mb T1 connection (yes this could hurt!!!!) and are only in a testing / feasibility phase.
One problem I foresee with our replication setup is that our software application has a nightly routine in which truncates two tables totaling 130mb of database data.
I was thinking of two options:
- Let the database truncate and replicate the 130mb every night
- Somehow schedule the replication to pause between the database truncate update (once per day)
Option one isn't really a great option imo as it will not allow our customers to view the information they need whilst the truncate and replication is working. This could take some time over a 1.5mb connection.
Is option two possible? Will the replication be happy if it is paused at say 6pm and back on at 8pm with two tables truncated and populated with data? Will MySQL try to replicate all truncated data or just changes it finds? Unfortunately our application has been written with the truncate to perform some updates on the database. These two tables that truncate to not change too much. I'm hoping MySQL would be intelligent enough to see that only 10 records have changed in the truncated tables and update only those 10 records.
We are working on rewriting the application as so it doesn't truncate but this is a while away. For now I just need some form of replication.
Thanks in advance for any input.
Regards,
Jon