Quantcast
Channel: Mobile - Couchbase Forums
Viewing all articles
Browse latest Browse all 1119

SG-Replicate and sequence numbers

$
0
0

@Jonathan_G wrote:

I have 2 sync gateways in 2 different data centres - SG1 and SG2. Ideally I want an active \ active sync setup where any client can connect to either SG at any time.

If I use SG-Replicate to keep these 2 in sync, the sequence numbers differ from SG1 to SG2
(ie: on SG1, seq 100 = record A.
on SG2, seq 100 = record B)

Here is the use-case

  1. Client1 connects to SG1 @ last_sequence = 100
  2. SG1 becomes unavailable so Client1 connects to SG2 @ last_sequence = 100.
  3. The sequence numbers on the 2 SG’s are not in sync with each other so Client1 does not get the right records back.

I can not find documentation explaining how to use SG-Replicate in order to have 2 sync gateways which replicate with each other and can be accessed by any of the clients interchangeably. Can someone please explain this to me?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1119

Trending Articles