Read only flag set automatically, data inconsistency between master/replica.

43 views
Skip to first unread message

prisms....@gmail.com

unread,
Jul 16, 2016, 6:03:18 AM7/16/16
to Google Cloud SQL discuss
Today morning, my SQL instances and replica both were automatically set to read_only ON.

I set the flags manually to off.

Further, I found that there is data inconsistency between replica and master. How do I find out if the connection is broken? How do I restore/sync the master to the replica?


I also created a test instance with a replica and found that read_only was set to ON though the default should be off. Right?

prisms....@gmail.com

unread,
Jul 16, 2016, 6:04:15 AM7/16/16
to Google Cloud SQL discuss
This is for 2nd generation instances

prisms....@gmail.com

unread,
Jul 16, 2016, 6:31:30 AM7/16/16
to Google Cloud SQL discuss
Ok, looks like the read only flags are working fine.
But the master keeps failing randomly and when it goes to failover, I get the The MySQL server is running with the --read-only

According to the docs, when the master fails the replica becomes the new master. Any way to trigger this manually, or figure out why the master is failing?

Adam (Cloud Platform Support)

unread,
Jul 18, 2016, 1:16:35 PM7/18/16
to google-cloud...@googlegroups.com
My advice is to file a production issue on https://code.google.com/p/googlecloudsql/issues/list, and provide as much detail as possible (you can make the issue private) so that we can look into it.
Reply all
Reply to author
Forward
0 new messages