Our development Cloud SQL Instance stuck on "Instance being updated" status for more than 12 hours. The insight shows that we have reached our SLA limit ang recommended that we split the database across multiple instances or turning off the innodb_file_per_table flag. I tried restoring the backup to a new instance but that failed after waiting for more than 3 hours. I was not able to change the innodb_file_per_table flag since all operations are disabled when an instance is in this state.
I also noticed that the daily backup was not working on "daily" basis.
It sounds like your Cloud SQL instance is stuck in a state where it's unable to complete the update process. This can occur for various reasons, including reaching resource limits or having a large database with the innodb_file_per_table
flag enabled.
Here are some steps you can try to resolve the issue:
Regarding the daily backup:
If the daily backup isn't running as expected:
Additional tips:
innodb_file_per_table
flag, monitor database performance to ensure it meets your needs.@ms4446 thanks for your suggestions.
About the daily backup I think i know what causes it. Last few weeks I made a scheduler where all development instances will be shutdown when no one is using them and then be turned on in the morning. The timing coincide with the daily backup - my bad 😁.
I understand your situation. Given that you've identified the scheduler as the potential cause of the daily backup issue, here's what I recommend:
Adjust the Scheduler: Consider temporarily disabling the scheduler that shuts down your development instances. This should allow the daily backups to run without interruption. Once you've confirmed that the backups are running successfully, you can re-enable the scheduler. However, make sure to adjust its timing to avoid any conflicts with the backup process in the future.
Google Cloud Support: If the issue with the "Instance being updated" status persists or if you encounter any other challenges, I recommend reaching out to Google Cloud support. They have the tools and expertise to delve deeper into the problem and provide specific solutions.
Update: Server finished the update after almost 24hours. I already applied the flag and added a new server. Hope that I never encounter this problem again. Thanks @ms4446