Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Nov 8, 2020

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants