GreatSQL社区

搜索

[已解决] 节点状态错误

987 10 2023-8-16 16:31
  "10.133.62.110:3306": {
                "address": "10.133.62.110:3306",
                "memberRole": "SECONDARY",
                "memberState": "(MISSING)",
                "mode": "n/a",
                "readReplicas": {},
                "role": "HA",
                "shellConnectError": "RuntimeError: The provided URI uses the X protocol, which is not supported by this command.",
                "status": "ONLINE",
                "version": "8.0.25"
            },

全部回复(10)
fuhao009 2023-8-16 16:33:32
(Wed Aug 16 16:32:44 2023)[hsyq@GreatSQL][(none)]>select * from performance_schema.replication_group_members;
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+
| CHANNEL_NAME              | MEMBER_ID                            | MEMBER_HOST   | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION |
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+
| group_replication_applier | 8e79e3c2-3c04-11ee-87b8-fa160a853e6e | 10.133.62.110 |        3306 | ONLINE       | SECONDARY   | 8.0.25         |
| group_replication_applier | fc058858-3804-11ee-81f8-fa160a853e6d | 10.133.62.109 |        3306 | ONLINE       | SECONDARY   | 8.0.25         |
| group_replication_applier | fe1d31a8-3804-11ee-bfd2-fa160a853e76 | 10.133.62.118 |        3306 | ONLINE       | PRIMARY     | 8.0.25         |
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+
3 rows in set (0.00 sec)
fuhao009 2023-8-16 16:35:18
fuhao009 发表于 2023-8-16 16:33
(Wed Aug 16 16:32:44 2023)[hsyq@GreatSQL][(none)]>select * from performance_schema.replication_group ...

[root@wd1155-db bin]# uname -a
Linux wd1155-db 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
fuhao009 2023-8-16 17:04:37
yejr 发表于 2023-8-16 16:52
节点状态看起来是正常的ONLINE,有问题的是shell的连接状态。
你的shell是如何连接的,其他节点有无该问 ...

其他节点没问题
fuhao009 2023-8-16 17:05:29

    "clusterName": "test02",
    "defaultReplicaSet": {
        "name": "default",
        "primary": "10.133.62.118:3306",
        "ssl": "REQUIRED",
        "status": "OK_NO_TOLERANCE",
        "statusText": "Cluster is NOT tolerant to any failures. 1 member is not active.",
        "topology": {
            "10.133.62.109:3306": {
                "address": "10.133.62.109:3306",
                "memberRole": "SECONDARY",
                "mode": "R/O",
                "readReplicas": {},
                "replicationLag": null,
                "role": "HA",
                "status": "ONLINE",
                "version": "8.0.25"
            },
            "10.133.62.110:3306": {
                "address": "10.133.62.110:3306",
                "memberRole": "SECONDARY",
                "mode": "n/a",
                "readReplicas": {},
                "role": "HA",
                "shellConnectError": "MySQL Error 2003 (HY000): Can't connect to MySQL server on '10.133.62.110:3306' (113)",
                "status": "(MISSING)"
            },
            "10.133.62.118:3306": {
                "address": "10.133.62.118:3306",
                "memberRole": "PRIMARY",
                "mode": "R/W",
                "readReplicas": {},
                "replicationLag": null,
                "role": "HA",
                "status": "ONLINE",
                "version": "8.0.25"
            }
        },
        "topologyMode": "Single-Primary"
    },
    "groupInformationSourceMember": "10.133.62.118:3306"
}
fuhao009 2023-8-16 17:29:59
yejr 发表于 2023-8-16 17:18
用MGR专用账号,通过mysqlshell客户端直连该节点,看看有啥情况

直连是正常的
fuhao009 2023-8-16 17:30:42

怎么验证这个支不支持
fuhao009 2023-8-16 17:34:50
fuhao009 发表于 2023-8-16 17:30
怎么验证这个支不支持

MySQL  10.133.62.118:3306 ssl  JS > dba.getCluster().status()
{
    "clusterName": "test02",
    "defaultReplicaSet": {
        "name": "default",
        "primary": "10.133.62.118:3306",
        "ssl": "REQUIRED",
        "status": "OK",
        "statusText": "Cluster is ONLINE and can tolerate up to ONE failure.",
        "topology": {
            "10.133.62.109:3306": {
                "address": "10.133.62.109:3306",
                "memberRole": "SECONDARY",
                "mode": "R/O",
                "readReplicas": {},
                "replicationLag": "00:00:35.488061",
                "role": "HA",
                "status": "ONLINE",
                "version": "8.0.25"
            },
            "10.133.62.110:3306": {
                "address": "10.133.62.110:3306",
                "memberRole": "SECONDARY",
                "mode": "R/O",
                "readReplicas": {},
                "replicationLag": "00:00:52.794993",
                "role": "HA",
                "status": "ONLINE",
                "version": "8.0.25"
            },
            "10.133.62.118:3306": {
                "address": "10.133.62.118:3306",
                "memberRole": "PRIMARY",
                "mode": "R/W",
                "readReplicas": {},
                "replicationLag": null,
                "role": "HA",
                "status": "ONLINE",
                "version": "8.0.25"
            }
        },
        "topologyMode": "Single-Primary"
    },
    "groupInformationSourceMember": "10.133.62.118:3306"
}
用mysql-shell-8.0.28-1.el7.x86_64.rpm正常
fuhao009

25

主题

0

博客

93

贡献

注册会员

Rank: 2

积分
157

2022年度求知人物2022年度活跃用户月度求知人物勤学好问(铜)助人为乐(铜)

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-5-19 10:39 , Processed in 0.018236 second(s), 16 queries , Redis On.
快速回复 返回顶部 返回列表