我有活动的主从 (ssl) 复制。我安装了maxscale,设置了配置,但是maxscale无法获取gtid_binlog_pos
错误:[mariadbmon] 无法选择“master”作为故障转移的降级目标,因为它没有“gtid_binlog_pos”并且禁用了不安全的故障转移。
数据库:MariaDB 10.3.25 操作系统:Ubuntu 20.04
我的配置最大比例:
threads=auto
log_info=1
log_debug=1
logdir=/opt/sslmaxscale/maxscale.log
[master]
type=server
address=192.168.89.234
port=3306
protocol=MariaDBBackend
ssl=required
ssl_ca_cert=/opt/sslmaxscale/ca-cert.pem
ssl_cert=/opt/sslmaxscale/server-cert.pem
ssl_key=/opt/sslmaxscale/server-key.pem
[slave]
type=server
address=192.168.89.231
port=3306
protocol=MariaDBBackend
ssl=required
ssl_ca_cert=/opt/sslmaxscale/ca-cert.pem
ssl_cert=/opt/sslmaxscale/server-cert.pem
ssl_key=/opt/sslmaxscale/server-key.pem
[MariaDB-Monitor]
type=monitor
module=mariadbmon
servers=master,slave
user=repl
password=password
monitor_interval=2000
auto_rejoin=true
auto_failover=true
replication_master_ssl=true ```
Ssl connection in mysql working, i checked it. And gtid_binlog_pos i can got
MariaDB [(none)]> SELECT @@global.gtid_binlog_pos; @@global.gtid_binlog_pos - 1-1-517