Hi there, in your definition you use server and node as if they are 2 separate containment. So I’ll rename you node to vbucket. vbucket is a physical partition of a bucket. there are many (1024) vbuckets in a buckets and vbuckets can be a active or a replica.
2 clusters. 1 cluster has 2 servers. Each server has some Active vbuckets and some Replica vbuckets.
Server1
Active vbuckets on server1 :Doc1, Doc2, Doc3
Replica vbuckets on server1: Doc4, Doc5, Doc6
Server2
Active vbuckets on server2 :Doc4, Doc5, Doc6
Replica vbuckets on server2: Doc1, Doc2, Doc3
Answers:
- docs are written to active vbuckets.
- replica vbuckets in each server save an identical copy of the active vbucket.
Hope this helps.
-cihan