ob这么确定主备库?

【产品名称】

–主库IP查询

obclient> SELECT CLUSTER_ID, CLUSTER_NAME, CLUSTER_ROLE, CLUSTER_STATUS FROM V$OB_CLUSTER;

±-----------±----------------±-------------±---------------+

| CLUSTER_ID | CLUSTER_NAME | CLUSTER_ROLE | CLUSTER_STATUS |

±-----------±----------------±-------------±---------------+

| 2 | primary_cluster | PRIMARY | VALID |

±-----------±----------------±-------------±---------------+

1 row in set (0.00 sec)

–备库IP查询

MySQL [oceanbase]> SELECT CLUSTER_ID, CLUSTER_NAME, CLUSTER_ROLE, CLUSTER_STATUS FROM V$OB_CLUSTER;

±-----------±----------------±-------------±---------------+

| CLUSTER_ID | CLUSTER_NAME | CLUSTER_ROLE | CLUSTER_STATUS |

±-----------±----------------±-------------±---------------+

| 2 | primary_cluster | PRIMARY | VALID |

±-----------±----------------±-------------±---------------+

1 row in set (0.002 sec)

【产品版本】

【问题描述】这么主备库查询的角色都是PRIMARY?

如您查询结果所示, 名称为 primary_cluster 的集群是主集群