Comments - Force reads on Master in Master-Slave configuration

3 years, 10 months ago Laurent Indermühle

Hi Markus Mäkelä, thanks for trying to help!

I did. And the documention about this particular setting is paste in the question. I'm afraid your answer is incorrect :(

Maybe I should have named the question "How to FORCE reads on the master".

Here is my service :

[Read-Write-Service]
type=service
router=readwritesplit
servers=master01,slave01
master_reconnection=true
master_accept_reads=true
master_failure_mode=fail_on_write

And this is the listener :

[Read-Write-Listener]
type=listener
service=Read-Write-Service
protocol=MariaDBClient
port=4006
# disable ipv6
address=0.0.0.0
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.