Google Console interface allows to set up "read-only" flag to OFF for a read replica. However, regardless of the flag's value, which according to:
$ gcloud sql instances describe {{replica}}
is correctly set:
[...]
- name: read_only
value: 'off'
the global variable in mysql is still set to ON:
mysql> show variables like "read_only";
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| read_only | ON |
+---------------+-------+
Is this a bug?
I'm aware of all related risks of writing to a replica and am willing to do that anyway. If I can't disable read_only mode for built-in replicas, what are my options? Can I manually configure replication using SQL instances in a way that such replica wouldn't get into read_only mode?