I have configured group_replication on 4 db. Out of which I am trying to make 2 db as slave(only read). Even though I make read_only, user can write data in it.
Is possible to make 2 as master and 2 as slave?
MySQLmysql-8.0replication
I have configured group_replication on 4 db. Out of which I am trying to make 2 db as slave(only read). Even though I make read_only, user can write data in it.
Is possible to make 2 as master and 2 as slave?
Best Answer
The simple answer to this would be ... MAYBE.
Single Primary mode has super_read_only on every node that is not Primary.
When it comes to Multi-Primary mode, one possible workaround would be to add nodes to the cluster that have a higher version of MySQL 8 than the Primary. Such a node should go into read-only mode automatically. Please note the paragraph of the MySQL 8 Multi-Primary Mode Docs under the heading
Version Compatibility
:You can also try using super_read_only on the desired node you want as read only, just make sure Group Replication doesn't start acting funny.