Hi @Vadim_Yalovets ,
Sorry for the late response again. Actually the PMM agent in our setup is running via the same OS user as the MySQL service. So I enabled debugging for the agent and I am pasting below the lines that had the queries with the pattern “%group%” in the debug output. Also, please note that I started to record the debug o/p from Mar 26th, and the first occurrence of a query trying to gather the group replication details was surprisingly late on Apr 5th.
I have replaced the variable substitution with “##”, because the portal wouldn’t allow me to paste the logs as is, as new users can’t use “at the rate” symbol in a post more than two times
====================================================
DEBU[2021-04-05T12:14:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `c58298686c4dc84fe485803d311c4b153a3e03f35ddaa73ec7e1053a89238c80` (*string), DigestText: "SELECT ##`group_replication_single_primary_mode` , `variable_value` AS `primary_uuid` FROM `performance_schema` . `global_status` WHERE `variable_name` = ?" (*string), CountStar: 30 (uint64), SumTimerWait: 7924040000 (uint64), MinTimerWait: 200268000 (uint64), AvgTimerWait: 264134000 (uint64), MaxTimerWait: 375455000 (uint64), SumLockTime: 1234000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 30 (uint64), SumRowsExamined: 30 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 0 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 0 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `32ca4854f751684a77513ef11c73a897514812fd69c6f84fed557b948a552417` (*string), DigestText: "SELECT CAST ( SUM ( IF ( `member_state` = ?, ... ) ) AS SIGNED ) AS `UNREACHABLE` , COUNT ( * ) AS `TOTAL` FROM `performance_schema` . `replication_group_members`" (*string), CountStar: 57 (uint64), SumTimerWait: 7832291000 (uint64), MinTimerWait: 87533000 (uint64), AvgTimerWait: 137408000 (uint64), MaxTimerWait: 430613000 (uint64), SumLockTime: 3165000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 57 (uint64), SumRowsExamined: 148 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 57 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 57 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `98190d0b478713ddd3c11be4077efdbdf1f1a758d4e3fe8324ace53d3623249e` (*string), DigestText: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?" (*string), CountStar: 59 (uint64), SumTimerWait: 14086579000 (uint64), MinTimerWait: 113059000 (uint64), AvgTimerWait: 238755000 (uint64), MaxTimerWait: 2185991000 (uint64), SumLockTime: 4980000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 59 (uint64), SumRowsExamined: 150 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 59 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 59 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `779b6eccf4f9856de82fc1ffa222eb9d2f28964f35f09dce4a5221d7e9b1bbf6` (*string), DigestText: "SELECT `MEMBER_STATE` FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ?" (*string), CountStar: 57 (uint64), SumTimerWait: 7481369000 (uint64), MinTimerWait: 88464000 (uint64), AvgTimerWait: 131252000 (uint64), MaxTimerWait: 254704000 (uint64), SumLockTime: 2427000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 57 (uint64), SumRowsExamined: 148 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 57 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 57 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `aed090d9bd4a304c8436848ab39bfa324e00ee944a74030e0dba1336dfb5e2a0` (*string), DigestText: "SELECT NOT ##`group_replication_single_primary_mode` OR ( SELECT `variable_value` FROM `performance_schema` . `global_status` WHERE `variable_name` = ? ) = ##`server_uuid`" (*string), CountStar: 11 (uint64), SumTimerWait: 6331400000 (uint64), MinTimerWait: 405726000 (uint64), AvgTimerWait: 575581000 (uint64), MaxTimerWait: 913894000 (uint64), SumLockTime: 1506000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 11 (uint64), SumRowsExamined: 11 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 0 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 0 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `30c72d215dc8df3be903e67e88ca99d14e51f36fe99f52bb70723b7ef00182bc` (*string), DigestText: "SELECT ##`group_replication_group_name`" (*string), CountStar: 14 (uint64), SumTimerWait: 746635000 (uint64), MinTimerWait: 38046000 (uint64), AvgTimerWait: 53331000 (uint64), MaxTimerWait: 99448000 (uint64), SumLockTime: 0 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 14 (uint64), SumRowsExamined: 0 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 0 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 0 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `1aee9574b869302fa5832c6c7bf770acd5eca6b781c34bb544ffac7733154611` (*string), DigestText: "SELECT * FROM `performance_schema` . `replication_group_member_stats`" (*string), CountStar: 15 (uint64), SumTimerWait: 3263769000 (uint64), MinTimerWait: 147144000 (uint64), AvgTimerWait: 217584000 (uint64), MaxTimerWait: 520411000 (uint64), SumLockTime: 1357000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 39 (uint64), SumRowsExamined: 39 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 15 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 15 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `b3e703ab7f1cb50188952c5f0e5e95f3c6c6766370ce4daeb194571957d0eb63` (*string), DigestText: "SELECT CAST ( SUM ( IF ( `member_state` = ?, ... ) ) AS SIGNED ) AS `UNRCH` , COUNT ( * ) AS `TOTAL` , ( SELECT `member_state` FROM `performance_schema` . `replication_group_members` WHERE `member_id` = ##`server_uuid` ) AS `my_state` FROM `performance_schema` . `replication_group_members`" (*string), CountStar: 26 (uint64), SumTimerWait: 6778984000 (uint64), MinTimerWait: 162153000 (uint64), AvgTimerWait: 260730000 (uint64), MaxTimerWait: 696864000 (uint64), SumLockTime: 3161000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 26 (uint64), SumRowsExamined: 134 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 52 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 26 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `73376b0b4bd8ba0e87e104959953309948c56bf714946a694b1232e0079361ad` (*string), DigestText: "SELECT `member_id` , `member_state` , `member_host` , `member_port` , `member_role` , `member_version` , ##`group_replication_single_primary_mode` FROM `performance_schema` . `replication_group_members`" (*string), CountStar: 16 (uint64), SumTimerWait: 2138617000 (uint64), MinTimerWait: 96183000 (uint64), AvgTimerWait: 133663000 (uint64), MaxTimerWait: 189664000 (uint64), SumLockTime: 762000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 42 (uint64), SumRowsExamined: 42 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 16 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 16 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
DEBU[2021-04-05T12:14:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `fe2ab0d753fd1550c4bf66eef9275a18846fe6e98c829ec9dc5c76a33b779094` (*string), DigestText: "SELECT `replicaset_name` , `topology_type` , `attributes` ->> ? AS `group_name` FROM `mysql_innodb_cluster_metadata` . `replicasets` WHERE `replicaset_id` = ?" (*string), CountStar: 14 (uint64), SumTimerWait: 3264398000 (uint64), MinTimerWait: 97425000 (uint64), AvgTimerWait: 233171000 (uint64), MaxTimerWait: 494066000 (uint64), SumLockTime: 2120000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 14 (uint64), SumRowsExamined: 14 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 0 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 0 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT ##`group_replication_single_primary_mode` , `variable_value` AS `primary_uuid` FROM `performance_schema` . `global_status` WHERE `variable_name` = ?"
fingerprint: "SELECT CAST ( SUM ( IF ( `member_state` = ?, ... ) ) AS SIGNED ) AS `UNREACHABLE` , COUNT ( * ) AS `TOTAL` FROM `performance_schema` . `replication_group_members`"
example: "SELECT CAST(SUM(IF(member_state = 'UNREACHABLE', 1, 0)) AS SIGNED) AS UNREACHABLE, COUNT(*) AS TOTAL FROM performance_schema.replication_group_members"
fingerprint: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?"
example: "select count(*) from performance_schema.replication_group_members where MEMBER_ID = ##server_uuid AND MEMBER_STATE IS NOT NULL AND MEMBER_STATE <> 'OFFLINE'"
fingerprint: "SELECT `MEMBER_STATE` FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ?"
example: "SELECT MEMBER_STATE FROM performance_schema.replication_group_members WHERE MEMBER_ID = 'd5007267-a22f-11e9-8c81-fa163e51af36'"
fingerprint: "SELECT NOT ##`group_replication_single_primary_mode` OR ( SELECT `variable_value` FROM `performance_schema` . `global_status` WHERE `variable_name` = ? ) = ##`server_uuid`"
fingerprint: "SELECT ##`group_replication_group_name`"
fingerprint: "SELECT * FROM `performance_schema` . `replication_group_member_stats`"
example: "SELECT * FROM performance_schema.replication_group_member_stats"
fingerprint: "SELECT CAST ( SUM ( IF ( `member_state` = ?, ... ) ) AS SIGNED ) AS `UNRCH` , COUNT ( * ) AS `TOTAL` , ( SELECT `member_state` FROM `performance_schema` . `replication_group_members` WHERE `member_id` = ##`server_uuid` ) AS `my_state` FROM `performance_schema` . `replication_group_members`"
example: "SELECT CAST(SUM(IF(member_state = 'UNREACHABLE', 1, 0)) AS SIGNED) AS UNRCH, COUNT(*) AS TOTAL, (SELECT member_state FROM performance_schema.replication_group_members WHERE member_id = ##server_uuid) AS my_state FROM performance_schema.replication_group_members"
fingerprint: "SELECT `member_id` , `member_state` , `member_host` , `member_port` , `member_role` , `member_version` , ##`group_replication_single_primary_mode` FROM `performance_schema` . `replication_group_members`"
example: "SELECT member_id, member_state, member_host, member_port, member_role, member_version, ##group_replication_single_primary_mode FROM performance_schema.replication_group_members"
example: "SELECT ##server_uuid, VARIABLE_VALUE FROM performance_schema.global_status WHERE VARIABLE_NAME = 'group_replication_primary_member'"
fingerprint: "SELECT `replicaset_name` , `topology_type` , `attributes` ->> ? AS `group_name` FROM `mysql_innodb_cluster_metadata` . `replicasets` WHERE `replicaset_id` = ?"
example: "SELECT COUNT(*) FROM performance_schema.threads WHERE NAME = 'thread/group_rpl/THD_delayed_initialization'"
DEBU[2021-04-05T12:17:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `98190d0b478713ddd3c11be4077efdbdf1f1a758d4e3fe8324ace53d3623249e` (*string), DigestText: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?" (*string), CountStar: 60 (uint64), SumTimerWait: 14206900000 (uint64), MinTimerWait: 113059000 (uint64), AvgTimerWait: 236781000 (uint64), MaxTimerWait: 2185991000 (uint64), SumLockTime: 4980000000 (uint64), SumErrors: 1 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 59 (uint64), SumRowsExamined: 150 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 59 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 59 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?"
example: "select count(*) from performance_schema.replication_group_members where MEMBER_ID = ##server_uuid AND MEMBER_STATE IS NOT NULL AND MEMBER_STATE <> 'OFFLINE'"
example: "SELECT COUNT(*) FROM performance_schema.threads WHERE NAME = 'thread/group_rpl/THD_delayed_initialization'"
DEBU[2021-04-05T12:20:00.008+02:00] Normal query: SchemaName: <nil> (*string), Digest: `98190d0b478713ddd3c11be4077efdbdf1f1a758d4e3fe8324ace53d3623249e` (*string), DigestText: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?" (*string), CountStar: 61 (uint64), SumTimerWait: 14312729000 (uint64), MinTimerWait: 105829000 (uint64), AvgTimerWait: 234634000 (uint64), MaxTimerWait: 2185991000 (uint64), SumLockTime: 4980000000 (uint64), SumErrors: 2 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 59 (uint64), SumRowsExamined: 150 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 59 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 59 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
example: "SELECT COUNT(*) FROM performance_schema.threads WHERE NAME = 'thread/group_rpl/THD_delayed_initialization'"
fingerprint: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `MEMBER_STATE` IS NOT NULL AND `MEMBER_STATE` != ?"
example: "select count(*) from performance_schema.replication_group_members where MEMBER_ID = ##server_uuid AND MEMBER_STATE IS NOT NULL AND MEMBER_STATE <> 'OFFLINE'"
DEBU[2021-04-05T12:47:00.006+02:00] New query: SchemaName: <nil> (*string), Digest: `5efefc668019baeb644d5ab18150b7bb43469897fa19b3ee0e12a123997949f5` (*string), DigestText: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `member_state` IS NOT NULL AND `MEMBER_STATE` != ?" (*string), CountStar: 1 (uint64), SumTimerWait: 430481000 (uint64), MinTimerWait: 430481000 (uint64), AvgTimerWait: 430481000 (uint64), MaxTimerWait: 430481000 (uint64), SumLockTime: 245000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 1 (uint64), SumRowsExamined: 3 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 1 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 1 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT COUNT ( * ) FROM `performance_schema` . `replication_group_members` WHERE `MEMBER_ID` = ##`server_uuid` AND `member_state` IS NOT NULL AND `MEMBER_STATE` != ?"
example: "select count(*) from performance_schema.replication_group_members where MEMBER_ID=##`server_uuid` and member_state is not null and MEMBER_STATE !=\"?\""
DEBU[2021-04-05T12:48:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `9a3ab3f74fdefae224f0fc283828f12664f0fee1d4fa3a34aba9c3c099b7555a` (*string), DigestText: "SELECT * FROM `performance_schema` . `replication_group_members`" (*string), CountStar: 2 (uint64), SumTimerWait: 771042000 (uint64), MinTimerWait: 246041000 (uint64), AvgTimerWait: 385521000 (uint64), MaxTimerWait: 525001000 (uint64), SumLockTime: 379000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 6 (uint64), SumRowsExamined: 6 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 2 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 2 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT * FROM `performance_schema` . `replication_group_members`"
example: "select * from performance_schema.replication_group_members"
DEBU[2021-04-05T12:49:00.007+02:00] Normal query: SchemaName: <nil> (*string), Digest: `30c72d215dc8df3be903e67e88ca99d14e51f36fe99f52bb70723b7ef00182bc` (*string), DigestText: "SELECT ##`group_replication_group_name`" (*string), CountStar: 15 (uint64), SumTimerWait: 871771000 (uint64), MinTimerWait: 38046000 (uint64), AvgTimerWait: 58118000 (uint64), MaxTimerWait: 125136000 (uint64), SumLockTime: 0 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 15 (uint64), SumRowsExamined: 0 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 0 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 0 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT ##`group_replication_group_name`"
example: "select ##group_replication_group_name"
DEBU[2021-04-05T12:54:00.009+02:00] New query: SchemaName: <nil> (*string), Digest: `0ff3cc1a689b1a49ca9a08efb0eef3cdae5e1bdac9fb84ca30057f48c5282f8a` (*string), DigestText: "SELECT `replicaset_name` , `topology_type` , `attributes` AS `group_name` FROM `mysql_innodb_cluster_metadata` . `replicasets`" (*string), CountStar: 1 (uint64), SumTimerWait: 260760000 (uint64), MinTimerWait: 260760000 (uint64), AvgTimerWait: 260760000 (uint64), MaxTimerWait: 260760000 (uint64), SumLockTime: 121000000 (uint64), SumErrors: 0 (uint64), SumWarnings: 0 (uint64), SumRowsAffected: 0 (uint64), SumRowsSent: 1 (uint64), SumRowsExamined: 1 (uint64), SumCreatedTmpDiskTables: 0 (uint64), SumCreatedTmpTables: 0 (uint64), SumSelectFullJoin: 0 (uint64), SumSelectFullRangeJoin: 0 (uint64), SumSelectRange: 0 (uint64), SumSelectRangeCheck: 0 (uint64), SumSelectScan: 1 (uint64), SumSortMergePasses: 0 (uint64), SumSortRange: 0 (uint64), SumSortRows: 0 (uint64), SumSortScan: 0 (uint64), SumNoIndexUsed: 1 (uint64), SumNoGoodIndexUsed: 0 (uint64). agentID=/agent_id/b754a00f-a620-4c3e-a9ac-d1c27830eef1 component=agent-builtin type=qan_mysql_perfschema_agent
fingerprint: "SELECT `replicaset_name` , `topology_type` , `attributes` AS `group_name` FROM `mysql_innodb_cluster_metadata` . `replicasets`"
example: "select replicaset_name,topology_type,attributes as group_name from mysql_innodb_cluster_metadata.replicasets"
====================================================
Are there any general guidelines that are to be followed while using the values for switches --replica-set and --cluster while registering the InnoDB cluster instances ? For now, I just provided the values that were more user friendly and environment related. Do these values have to be fetched from somewhere inside the cluster’s metadata ?
I have these values for some of the queries that the PMM agent ran for group replication:
MySQL ******:3306 ssl SQL > select @@group_replication_group_name;
+--------------------------------------+
| @@group_replication_group_name |
+--------------------------------------+
| 9dbba070-a231-11e9-abe1-fa163e2288c1 |
+--------------------------------------+
1 row in set (0.0003 sec)
MySQL **********:3306 ssl SQL > select replicaset_name,topology_type,attributes as group_name from mysql_innodb_cluster_metadata.replicasets;
+-----------------+---------------+------------------------------------------------------------------------------------------+
| replicaset_name | topology_type | group_name |
+-----------------+---------------+------------------------------------------------------------------------------------------+
| default | pm | {"adopted": "0", "group_replication_group_name": "9dbba070-a231-11e9-abe1-fa163e2288c1"} |
+-----------------+---------------+------------------------------------------------------------------------------------------+
1 row in set (0.0004 sec)
Thanks,
Nikunj