当前位置:网站首页>warning: [mariadbmon] The current master server ‘srv-cls01-02‘ is no longer valid because it is in r
warning: [mariadbmon] The current master server ‘srv-cls01-02‘ is no longer valid because it is in r
2022-07-22 19:44:00 【Yabingshi】
One Problem description
mariadb There is one master and two slaves , Example :
192.168.144.249
192.168.144.250
192.168.144.251
At first 249 This server is the main database ,250,251 It's from ( From the library read_only), Then there was a master-slave switch ,250 It becomes the main library ,249,251 It automatically becomes 250 Slave Library . Then it restarted 250, Find out maxscale Displays the status of all three databases Slave,Running:
notice maxscale The following errors are reported in the log :
21 2022-06-16 01:00:50 warning: [mariadbmon] The current master server 'srv-cls01-02' is no longer valid because it is in read-only mode, but there is no valid alternative to swap to.
22 2022-06-16 01:00:50 error : [mariadbmon] No Master can be determined. Last known was 192.168.144.250:3306
Because there is no master database , As a result, the business cannot write data .
Two Cause of error
Restarting the database is fast , There is no time to trigger automatic database failover , Failed to promote the slave database to the master database . And it's rebooted 250 database , Will read the read-only configuration in the configuration file , therefore maxscale I don't know who the master database is , So all three are Slave,Running.
3、 ... and terms of settlement
Log in to the database , Change parameter configuration online :
set global read_only=on;
Cancel database mariadb In the configuration file read_only To configure .
In order to avoid colleagues connecting directly to a slave database ( Not even maxscale The agent address of ) Made modifications , Lead to inconsistency between master and slave , Can limit only maxscale ip Connect to database ( establish host by maxscale The server ip Users of ), But this way , Connect from the client maxscale agent ip Will report a mistake :
Need to be in maxscale Add a parameter to the listener in the configuration file , skip maxscale Authentication of account Authority :
authenticator_options=skip_authentication=true
And then restart maxscale
边栏推荐
- 博士申请 | 香港大学倪卓娴教授招收物联网与机器学习方向全奖博士生
- 敏捷 ? DevOps ?
- The force deduction method summarizes the number of 1252 odd value cells
- Constructors and destructors of derived classes
- 7.18 number of square arrays
- 【带你学c带你飞】浙大版《C语言程序设计(第3版)》第3章 分支结构(习题3)
- [Standard Specification] what is the concept and definition of low code? Is no code a low code?
- CCF 1-2题答题记录(2)
- Atr5179 single pole double throw switch chip replaces as179-92lf
- Pytest interface automated testing framework | pytest parameterization
猜你喜欢
mariadb审计插件
The problem that double type cannot be accurately calculated
[take you to learn C, take you to fly] branch structure in Chapter 3 of C language programming (3rd Edition) of Zhejiang University Edition (exercise 3)
multiple inheritance
你经常遇到的IO模型
NFT数字藏品系统搭建—app开发
Neo4j example: figure relationship map of the annals of the Three Kingdoms
maxscale的causal_reads参数
派生類的構造函數和析構函數
Zabbix Server宕机报“__zbx_mem_malloc(): out of memory (requested 96 bytes)”
随机推荐
C# winform excel根据当前选中内容,自动插入/编辑批注
NLP text classification top meeting paper reading notes for natural language processing (2)
Force deduction solution summary 1217- playing chips
Access to derived class members
Neo4j example: figure relationship map of the annals of the Three Kingdoms
oracle用一条sql查出哪些数据不在某个表里
Atr5179 single pole double throw switch chip replaces as179-92lf
pytest接口自动化测试框架 | pytest参数化
重复调用、消息,幂等性方案全整理
最强屏幕工具ShareX v14.0.1
[learn C and fly] Chapter 3 branch structure (exercise 3.1 simple guessing game)
MariaDB audit plug-in
SI14T触摸按键芯片兼容替代TMS12
Pytest interface automation test framework | interface automation to yaml data-driven
PHP Cookie
7.19 二叉树
直接修改/etc/crontab 文件内容,定时任务不生效
YII2 composer 报错解决 requires bower-asset 问题
Setting proxy method in PHP curl request
Synchronized与lock锁区别