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

Add _replicate support to SG admin REST API #1663

Closed
2 of 10 tasks
zgramana opened this issue Mar 21, 2016 · 4 comments · Fixed by #1698
Closed
2 of 10 tasks

Add _replicate support to SG admin REST API #1663

zgramana opened this issue Mar 21, 2016 · 4 comments · Fixed by #1698
Assignees
Milestone

Comments

@zgramana
Copy link
Contributor

As an admin, I should be able to replicate two or more Sync Gateway instances with each other.

Additional criteria:

  • User and Role docs support. Not in initial delivery.
  • Channel filtering.
  • Cookie auth support.
  • Include management API _active_tasks.

Open questions:

  • Web Sockets? HTTP/2?
  • Prioritization of specific replications?
  • New webhooks: create, delete, started, stopped, retrying?
  • Local docs?
  • TTLs?
  • Optimized backfills?
@zgramana zgramana added this to the 1.3 milestone Mar 21, 2016
@adamcfraser
Copy link
Collaborator

I don't think we can support user and role doc replication between Sync Gateways without an enhancement to manage those docs using revision trees. It would be relatively straightforward to include user and role docs in an admin _changes request, but without rev trees for those docs, we still wouldn't have a way to resolve when updates to the user docs are made in both systems, or even avoid an echo/feedback loop when an update is originally made in only one system.

@atom992
Copy link

atom992 commented Mar 23, 2016

@zgramana Can you explain why SG need to replicate two or more Sync Gateway instances with each other.

@tleyden
Copy link
Contributor

tleyden commented Mar 23, 2016

There are lots of use cases .. A simple one would be a high availability scenario with an up to date backup in a different data center.

Master-master replication also an option .. One SG on west coast and one on east coast, and user devices would connect to the closest one

@zgramana zgramana changed the title Add _replicate support to SG admin REST API Add _replicate support to SG admin REST API Mar 25, 2016
@zgramana zgramana added the ready label Mar 25, 2016
@adamcfraser
Copy link
Collaborator

adamcfraser commented Apr 1, 2016

Current work is on feature/issue_1663_replicate.

Status (initial implementation):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants