ProxySQL(MGR)部署故障:'sys.gr_member_routing_candidate_status' doesn't exist
ProxySQL(MGR) 故障排查:
- 故障现象:runtime_mysql_servers节点状态offline_hostgroup(本案例为15)
- 日志关键信息:
[WARNING] Group Replication: setting host db211:3507 offline because: Table 'sys.gr_member_routing_candidate_status' doesn't exist
具体情况如下:
admin@127.0.0.1 [man]>select * from runtime_mysql_group_replication_hostgroups;
+------------------+-------------------------+------------------+----------------+--------+------------+----+
| writer_hostgroup | backup_writer_hostgroup | reader_hostgroup | offline_hostgroup | active | max_writers | writer_is_also_reader |
+------------------+-------------------------+------------------+----------------+--------+------------+----+
| 10 | 13 | 11 | 15 | 1 | 1 | 1 |
+------------------+-------------------------+------------------+----------------+--------+------------+----+
1 row in set (0.00 sec)
admin@127.0.0.1 [man]>select * from mysql_servers;
+--------------+----------+------+--------+--------+-------------+-----------------+
| hostgroup_id | hostname | port | status | weight | compression | max_connections |
+--------------+----------+------+--------+--------+-------------+-----------------+
| 10 | db210 | 3507 | ONLINE | 1 | 0 | 1000 |
| 11 | db211 | 3507 | ONLINE | 1 | 0 | 1000 |
| 11 | db212 | 3507 | ONLINE | 1 | 0 | 1000 |
+--------------+----------+------+--------+--------+-------------+-----------------+
3 rows in set (0.00 sec)
admin@127.0.0.1 [man]>load mysql servers to runtime;
Query OK, 0 rows affected (0.01 sec)
admin@127.0.0.1 [man]>select * from runtime_mysql_servers;
+--------------+----------+------+--------+--------+-------------+-----------------+
| hostgroup_id | hostname | port | status | weight | compression | max_connections |
+--------------+----------+------+--------+--------+-------------+-----------------+
| 15 | db210 | 3507 | ONLINE | 1 | 0 | 1000 |
| 11 | db211 | 3507 | ONLINE | 1 | 0 | 1000 |
| 15 | db212 | 3507 | ONLINE | 1 | 0 | 1000 |
+--------------+----------+------+--------+--------+-------------+-----------------+
3 rows in set (0.01 sec)
- 查看proxysql.log文件:
[root@db210_21:24:47 /var/lib/proxysql]
#vi proxysql.log
2018-08-23 21:22:41 MySQL_HostGroups_Manager.cpp:2382:update_group_replication_set_offline(): [WARNING] Group Replication: setting host db210:3507 offline because: Table 'sys.gr_member_routing_candidate_status' doesn't exist
2018-08-23 21:22:41 MySQL_HostGroups_Manager.cpp:2382:update_group_replication_set_offline(): [WARNING] Group Replication: setting host db212:3507 offline because: Table 'sys.gr_member_routing_candidate_status' doesn't exist
2018-08-23 21:22:46 MySQL_HostGroups_Manager.cpp:2382:update_group_replication_set_offline(): [WARNING] Group Replication: setting host db211:3507 offline because: Table 'sys.gr_member_routing_candidate_status' doesn't exist
2018-08-23 21:22:46 MySQL_HostGroups_Manager.cpp:602:commit(): [WARNING] Removed server at address 140216413326592, hostgroup 11, address db211 port 3507. Setting status OFFLINE HARD and immediately dropping all free connections. Used connections will be dropped when trying to use them
- 经查,依赖于mysql_gr_routing_check 下载其addition_to_sys.sql导入节点中
root@localhost [sys]>source /opt/mysql_gr_routing_check/addition_to_sys.sql
Database changed
Query OK, 0 rows affected (0.00 sec)
...
Query OK, 0 rows affected (0.00 sec)
root@localhost [sys]>
- 切换到proxySQL中查看runtime_mysql_servers 已经正常:
mysql -h 127.0.0.1 -P 6032 -uadmin -padmin (wd: /data/backup)
admin@127.0.0.1 [man]>select hostgroup_id,hostname,port,status,weight,max_connections from runtime_mysql_servers;
+--------------+----------+------+--------+--------+-----------------+
| hostgroup_id | hostname | port | status | weight | max_connections |
+--------------+----------+------+--------+--------+-----------------+
| 10 | db212 | 3507 | ONLINE | 1 | 1000 |
| 13 | db211 | 3507 | ONLINE | 1 | 1000 |
| 13 | db210 | 3507 | ONLINE | 1 | 1000 |
| 11 | db212 | 3507 | ONLINE | 1 | 1000 |
| 11 | db211 | 3507 | ONLINE | 1 | 1000 |
| 11 | db210 | 3507 | ONLINE | 1 | 1000 |
+--------------+----------+------+--------+--------+-----------------+
6 rows in set (0.00 sec)
ProxySQL(MGR)部署故障:'sys.gr_member_routing_candidate_status' doesn't exist的更多相关文章
- ProxySQL+MGR实现读写分离和主节点故障无感知切换 - 完整操作记录
前面的文章介绍了ProxySQL用法,这里说下ProxySQL中间件针对Mysql组复制模式实现读写分离以及主节点故障时能够自动切换到新的主节点,而应用对此过程无感知的功能.Mysql组复制(MGR) ...
- 5.7.20 多实例——MGR部署实战
数据库 | MySQL:5.7.20 多实例——MGR部署实战 MGR介绍 基于传统异步复制和半同步复制的缺陷——数据的一致性问题无法保证,MySQL官方在5.7.17版本正式推出组复制(MySQL ...
- Kubernetes中Deployment部署故障排除
Kubernetes中Deployment部署故障排除 字符型思维导图 排查pod状态(带标签):kubectl get pods,是否有等待处理的pod? 是?kubectl describe po ...
- Asp.Net Core App 部署故障示例 1
相关阅读:Windows + IIS 环境部署Asp.Net Core App 1. HTTP Error 502.5 – Process Failure 环境 Windows Server 201 ...
- Asp.Net Core App 部署故障示例 2
相关阅读:Windows + IIS 环境部署Asp.Net Core App 1. HTTP Error 502.5 – Process Failure 环境 Windows Server 201 ...
- 【Linux】MGR部署脚本
脚本没有完善,现在只有上半部分的基础环境搭建 [准备条件] 1.三个节点的防火墙关闭 2.原有mysql卸载删除 3.文件夹名字: mgr 所有的源码包都放在mgr的文件夹下 4.文件位置: /roo ...
- Mysql 5.7 基于组复制(MySQL Group Replication) - 运维小结
之前介绍了Mysq主从同步的异步复制(默认模式).半同步复制.基于GTID复制.基于组提交和并行复制 (解决同步延迟),下面简单说下Mysql基于组复制(MySQL Group Replication ...
- ProxySQL Cluster 高可用集群 + MySQL MGR环境部署 (多写模式) 部署记录
文章转载自:https://blog.51cto.com/u_6215974/4937192 ProxySQL 在早期版本若需要做高可用,需要搭建两个实例,进行冗余.但两个ProxySQL实例之间的数 ...
- ProxySQL Cluster 高可用集群环境部署记录
ProxySQL在早期版本若需要做高可用,需要搭建两个实例,进行冗余.但两个ProxySQL实例之间的数据并不能共通,在主实例上配置后,仍需要在备用节点上进行配置,对管理来说非常不方便.但是Proxy ...
随机推荐
- POJ3378_Crazy Thairs
这个题目很有意思,也是一个很好的题目,涉及的知识点比较广,要求较高. 题目是这样的,给定你一个n个数的数列,问你有多少个长度为5的上升序列. 首先看到有50000,我们就知道肯定不会是DP.(但是不知 ...
- BZOJ 2427 软件安装(强连通分量+树形背包)
题意:现在我们的手头有N个软件,对于一个软件i,它要占用Wi的磁盘空间,它的价值为Vi.我们希望从中选择一些软件安装到一台磁盘容量为M计算机上,使得这些软件的价值尽可能大(即Vi的和最大).但是现在有 ...
- jsp和js中获取项目路径名
一.jspa.<%=request.getContextPath()%>//结果:/projectNameb.${pageContext.request.contextPath}//结果: ...
- Command Network OpenJ_Bailian - 3436(最小有向生成树模板题)
链接: http://poj.org/problem?id=3164 题目: Command Network Time Limit: 1000MS Memory Limit: 131072K To ...
- General Sultan UVA - 11604(建图暴力)
给出n个字符串,询问是否存在一个字符串(可以是给出的几个中的 也可以是组合成的),使得用字符串(随便你用多少个)来拼凑这个串,能够至少有两种拼法 解析: 把每一个字符串的每一个位置的字符看作结点,进行 ...
- 转:解决Python中文编码问题
Python 文本挖掘:解决Python中文编码问题 转于:http://rzcoding.blog.163.com/blog/static/2222810172013101785738166/ ...
- 【BZOJ4654】【NOI2016】国王饮水记(动态规划,斜率优化)
[BZOJ4654][NOI2016]国王饮水记(动态规划,斜率优化) 题面 BZOJ 洛谷 题解 首先肯定是找性质. 明确一点,比\(h_1\)小的没有任何意义. 所以我们按照\(h\)排序,那么\ ...
- BZOJ3110 K大数查询 【线段树 + 整体二分 或 树套树(非正解)】
Description 有N个位置,M个操作.操作有两种,每次操作如果是1 a b c的形式表示在第a个位置到第b个位置,每个位置加入一个数c 如果是2 a b c形式,表示询问从第a个位置到第b个位 ...
- 【bzoj4810】【ynoi2018】由乃的玉米田
4810: [Ynoi2017]由乃的玉米田 Time Limit: 30 Sec Memory Limit: 256 MBSubmit: 1090 Solved: 524[Submit][Sta ...
- yii2框架-yii2局部关闭(开启)csrf的验证
(1)全局使用,我们直接在配置文件中设置enableCookieValidation为true request => [ 'enableCookieValidation' => true, ...