When we have below configuration:- ########################################Replication############################# [Write-Listener] type=listener service=Write-Service protocol=MariaDBClient port=3398 address=0.0.0.0 [Write-Service] type=service router=readconnroute router_options=master servers=master-node,slave-node-01,slave-node-02 user=maxmon passwd=maxmon #localhost_match_wildcard_host=1 [Read-Listener] type=listener service=Read-Service protocol=MariaDBClient port=3399 address=0.0.0.0 [Read-Service] type=service router=readconnroute router_options=slave servers=master-node,slave-node-01,slave-node-02 user=maxmon passwd=maxmon #localhost_match_wildcard_host=1 [root@maxscale maxscale]# mysql -u maxtest -pmaxtest -h 192.168.207.100 --port=3399 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 10.2.12 2.2.6-maxscale MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> select @@hostname; +---------------+ | @@hostname | +---------------+ | slave-node-01 | +---------------+ 1 row in set (0.00 sec) [root@node-01 ~]# mysql -u maxtest -pmaxtest -h 192.168.207.100 --port=3399 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 10.2.12 2.2.6-maxscale MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> select @@hostname; +---------------+ | @@hostname | +---------------+ | slave-node-02 | +---------------+ 1 row in set (0.00 sec) [root@node-02 ~]# mysql -u maxtest -pmaxtest -h 192.168.207.100 --port=3399 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 10.2.12 2.2.6-maxscale MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> select @@hostname; +---------------+ | @@hostname | +---------------+ | slave-node-01 | +---------------+ 1 row in set (0.00 sec) [root@node-03 ~]# mysql -u maxtest -pmaxtest -h 192.168.207.100 --port=3399 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 13 Server version: 10.2.12 2.2.6-maxscale MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]> select @@hostname; +---------------+ | @@hostname | +---------------+ | slave-node-02 | +---------------+ 1 row in set (0.00 sec)