Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
2.0.0
-
None
-
CentOS Linux release 7.2.1511
maxscale-2.0.0-1.x86_64 ( maxscale-beta-2.0.0-1.centos.7.x86_64.rpm )
Description
My /etc/maxscale.cnf is:
[Read-Write Service]
router_options=master_failure_mode=error_on_write
I have two servers:
server1 | 127.0.0.1 | 3311 | 0 | Slave, Running
server2 | 127.0.0.1 | 23307 | 0 | Master, Slave of External Server, Running
I can access the web site at this time.
Then I stopped the server2.
server1 | 127.0.0.1 | 3311 | 0 | Slave, Running
server2 | 127.0.0.1 | 23307 | 0 | Down
I can still access the web site because of having option error_on_write.
Then I restarted maxscale daemon.
server1 | 127.0.0.1 | 3311 | 0 | Running
server2 | 127.0.0.1 | 23307 | 0 | Down
I can't access the web site because of database error.
I want to access the web site if master server is down.