Point in time recovery mysql

Sett 66 ganger
Hopp til første uleste melding

Fernando Gonzalez

ulest,
13. okt. 2020, 15:41:0413.10.2020
til Google Cloud SQL discuss
Hi, 

Sorry if it is very basic, but I don't understand something. For an instance of mysql with HA and Point in time recovery enabled. How can I estimate how much data can be lost (RPO)?

I understand that the backups are stored in multiple regions and that with backup + binary logs I can recover the database. But where are the binary logs stored? 

Thanks

Olu

ulest,
14. okt. 2020, 16:50:0014.10.2020
til Google Cloud SQL discuss
As you have rightly mentioned, the Point in time recovery depends on the Binary logs. The binary log file name and position that correspond to the target point in time you plan the recovery; these are the essential information to be used to carry out the Point in time Recovery. 

Binary Logging can be enabled on your CloudSQL Instance by following the steps here[1], and once it is enabled, the Binary Logs are stored for each Automated Backup of your CloudSQL Instance. The Binary logging use storage space on your CloudSQL Instance. However, the Binary logs are deleted with their associated automatic backup every 7 days[2].

You may be concerned about performance on your CloudSQL Instance with the binary logging enabled, well, as per this doc[3], performance of read operations are unaffected by binary logging, regardless of the size of the binary log files.

About estimating how much Data may be lost, I think that depends mainly on your choice of recovery position[4]. 

I hope this answers your questions. 

Fernando Gonzalez

ulest,
14. okt. 2020, 23:44:0914.10.2020
til Google Cloud SQL discuss
Thanks for al the info

Then, if the binary logs are stored for each Automated Backup of my instance, and the backups are generated daily, if something happens to the instance just before the next backup is executed, what happens to the data? Is all the data between the daily backups lost or am I understanding something wrong?

George (Cloud Platform Support)

ulest,
15. okt. 2020, 13:32:3815.10.2020
til Google Cloud SQL discuss
If your point-in-time recovery date stamp is set to a moment during the day before, then all data will get lost since that date stamp yesterday, and the moment something happens to your instance, as detailed in the Identifying the recovery position paragraph [1]. 

Svar alle
Svar til forfatter
Videresend
0 nye meldinger