Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Issue #1259 Fix topology-related API endpoints for group replication setups#1263

Merged
shlomi-noach merged 1 commit intoopenark:masterfrom
ejortegau:master
Nov 8, 2020
Merged

Issue #1259 Fix topology-related API endpoints for group replication setups#1263
shlomi-noach merged 1 commit intoopenark:masterfrom
ejortegau:master

Conversation

@ejortegau
Copy link
Contributor

Related issue: #1259

Description

This PR improves methods associated with serving the /topology.* endpoints so that replication groups are properly represented. For example, for a topology such as the one shown below:

image

the topology representation is now such that orchestrator-client shows this:

[ 10430 ] user@sabre ~/go/src/github.com/openark/orchestrator (master) % ➜  ./resources/bin/orchestrator-client -c topology -i sabre:5000
sabre:5020       [0s,ok,8.0.22,rw,ROW,>>,GTID]
+ sabre:5000     [0s,ok,8.0.22,rw,ROW,>>,GTID]
  ‡ sabre:5001 [0s,ok,8.0.22,ro,ROW,>>,GTID]
  ‡ sabre:5002 [0s,ok,8.0.22,ro,ROW,>>,GTID]
    + sabre:5010 [0s,ok,8.0.22,rw,ROW,>>,GTID]
+ sabre:5022     [0s,ok,8.0.22,rw,ROW,>>,GTID]
  + sabre:5021   [0s,ok,8.0.22,rw,ROW,>>,GTID]

Notice that we use the double dagger character to distinguish group replication from classical replication.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants