Connections sent only to master

Hello,

I have installed :

  • 1 VM maxscale (RHEL 8.5 = maxscale-6.2.1-1.rhel.8.x86_64)
  • and 3 mariadb galera cluster VM: (RHEL 8.5 = MariaDB-server-10.5.13-1.el8.x86_64)

maxscale configuration

[maxscale]
threads=auto

[synboxsql1]
type=server
address=10.222.50.26
port=3306
protocol=MariaDBBackend

[synboxsql2]
type=server
address=10.222.50.27
port=3306
protocol=MariaDBBackend

[synboxsql3]
type=server
address=10.222.50.28
port=3306
protocol=MariaDBBackend

[MariaDB-Monitor]
type=monitor
module=mariadbmon
servers=synboxsql1,synboxsql2,synboxsql3
user=maxscale
password=xxxx
monitor_interval=1000

[Read-Write-Service]
type=service
router=readwritesplit
servers=synboxsql1,synboxsql2,synboxsql3
user=maxscale
password=xxx

[Read-Write-Listener]
type=listener
address=10.222.50.30
service=Read-Write-Service
protocol=MariaDBClient
port=3306

mariadb cluster configuration on each mariadb server

[galera]
wsrep_on=ON
wsrep_provider           = /usr/lib64/galera-4/libgalera_smm.so
wsrep_cluster_address    = gcomm://10.222.50.26,10.222.50.27,10.222.50.28
binlog_format=  ROW
innodb_autoinc_lock_mode = 2
default_storage_engine=InnoDB
wsrep_cluster_name       = SYNBOX

My Question ?

Everything seems working fine. But i don't know why, ony the first mariadb server is used.

[root@synboxmaxscale2 ~]# maxctrl list servers
┌────────────┬──────────────┬──────┬─────────────┬─────────────────┬──────┐
│ Server     │ Address      │ Port │ Connections │ State           │ GTID │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql1 │ 10.222.50.26 │ 3306 │ 3           │ Master, Running │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql2 │ 10.222.50.27 │ 3306 │ 0           │ Running         │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql3 │ 10.222.50.28 │ 3306 │ 0           │ Running         │      │
└────────────┴──────────────┴──────┴─────────────┴─────────────────┴──────┘
[root@synboxmaxscale2 ~]# maxctrl list servers
┌────────────┬──────────────┬──────┬─────────────┬─────────────────┬──────┐
│ Server     │ Address      │ Port │ Connections │ State           │ GTID │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql1 │ 10.222.50.26 │ 3306 │ 4           │ Master, Running │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql2 │ 10.222.50.27 │ 3306 │ 0           │ Running         │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql3 │ 10.222.50.28 │ 3306 │ 0           │ Running         │      │
└────────────┴──────────────┴──────┴─────────────┴─────────────────┴──────┘
[root@synboxmaxscale2 ~]# maxctrl list servers
┌────────────┬──────────────┬──────┬─────────────┬─────────────────┬──────┐
│ Server     │ Address      │ Port │ Connections │ State           │ GTID │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql1 │ 10.222.50.26 │ 3306 │ 3           │ Master, Running │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql2 │ 10.222.50.27 │ 3306 │ 0           │ Running         │      │
├────────────┼──────────────┼──────┼─────────────┼─────────────────┼──────┤
│ synboxsql3 │ 10.222.50.28 │ 3306 │ 0           │ Running         │      │
└────────────┴──────────────┴──────┴─────────────┴─────────────────┴──────┘

Thank for your help regards, Prebag

Comments

Comments loading...
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.