[MXS-3044] Route Select / Read Only to Node Master Only using readwritesplit Created: 2020-06-22 Updated: 2020-07-21 Resolved: 2020-07-21 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.4.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | febriyant | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | configuration, maxscale, readwritesplit | ||
| Environment: |
Linux CentOS 7 |
||
| Attachments: |
|
| Description |
|
how to route query read only to node master ? I using readwritesplit routing. but if node master is failed i need manually link / add node_slave to readwriteservice. this is my maxscale configuration
|
| Comments |
| Comment by febriyant [ 2020-06-23 ] | |
|
but after restart service but i run show service Read-Write-Service-Test
| |
| Comment by markus makela [ 2020-06-29 ] | |
|
The readwritesplit will load balance reads across all available servers. It's not possible to force it to only use the master server. | |
| Comment by febriyant [ 2020-07-03 ] | |
|
ok thanks @markus makela | |
| Comment by markus makela [ 2020-07-03 ] | |
|
Hve you made runtime changes to the configuration via maxctrl or maxadmin? If so, then the MaxScale log should contain an entry about persisted configuration changes and there should be at least one file in /var/lib/maxscale/maxscale.cnf.d/. Removing those files will remove the persisted configuration changes. | |
| Comment by febriyant [ 2020-07-06 ] | |
|
@markus makela, i setup from /etc/maxscale.cnf and restart maxscale service. | |
| Comment by markus makela [ 2020-07-06 ] | |
|
Are there any files in /var/lib/maxscale/maxscale.cnf.d/? | |
| Comment by febriyant [ 2020-07-21 ] | |
|
@markus.makela | |
| Comment by markus makela [ 2020-07-21 ] | |
|
If you remove /var/lib/maxscale/maxscale.cnf.d/Read-Write-Service-Test.cnf the changes in your configuration file shoud show up. You seem to have made runtime changes to MaxScale via maxctrl which were persisted on disk. The log should contain a message about these files and what they do. | |
| Comment by febriyant [ 2020-07-21 ] | |
|
so about the step is like this
what steps should i do ? | |
| Comment by markus makela [ 2020-07-21 ] | |
|
Those are the exact steps you should do. | |
| Comment by febriyant [ 2020-07-21 ] | |
|
thanks this variable master_accept_reads already true. |