MySQL 5.7 Reference Manual Including MySQL NDB Cluster 7.5 and NDB Cluster 7.6
The following example shows how to find out which server is currently the primary when deployed in single-primary mode.
mysql> SHOW STATUS LIKE 'group_replication_primary_member'
SHOW STATUS LIKE 'group_replication_primary_member'