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

[Platform] Add tracking of xCluster Replication Status to universe #8769

Closed
daniel-yb opened this issue Jun 4, 2021 · 0 comments
Closed
Assignees
Labels
area/platform Yugabyte Platform
Milestone

Comments

@daniel-yb
Copy link
Contributor

daniel-yb commented Jun 4, 2021

We should have a new table in the platform that tracks replication configs.

To begin with, this table can have the following columns:

  1. id (UUID - the pkey of the table)
  2. source (fkey reference to source universe UUID)
  3. sink (fkey reference to sink universe UUID)
  4. active (boolean)

So in the case of bi-directional replication, we'd expect this table to have two entries; each one denoting one side of the connection.

Hint: Take a look at ebean and @OneToMany / @ManyToOne annotations for fkey relationships.

We may want to enhance this table in the future to also track which tables are being replicated. Sort've TBD at the moment.

@daniel-yb daniel-yb added the area/platform Yugabyte Platform label Jun 4, 2021
@streddy-yb streddy-yb added this to the 2.7.x milestone Jun 16, 2021
atarw added a commit that referenced this issue Jun 21, 2021
Summary: Added new AsyncReplicationRelationship model + created sql migration to update table

Test Plan: Tested by running migration locally and by creating async replication relationship objects

Reviewers: daniel

Reviewed By: daniel

Subscribers: jenkins-bot

Differential Revision: https://phabricator.dev.yugabyte.com/D11944
@atarw atarw closed this as completed Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform Yugabyte Platform
Projects
None yet
Development

No branches or pull requests

3 participants