간접 동기화

패밀리에 세 개 이상의 복제본이 포함된 경우 동기화는 간접적으로 발생합니다. 복제본은 업데이트 패킷의 비논리적 변경사항을 포함할 수 있습니다.

예를 들어, boston_hub 복제본이 sanfran_hubbangalore 복제본과 업데이트를 교환하는 경우 sanfran_hub에서 이전에 수신한 bangalore oplog 항목을 송신합니다. 이 항목은 bangalore 복제본에 sanfran_hub 변경사항에 대한 최신 정보를 전달할 수도 또는 전달하지 않을 수도 있습니다. (sanfran_hub에서 bangalore로 송신한 업데이트는 bangalore가 최신이 되도록 함).

주: 복제본이 해당 패밀리의 일부 복제본에서 직접 패킷을 수신하지 않는 경우 이 복제본의 행에는 0이 포함될 수 있습니다. 이는 예상된 동작입니다.

표 1는 복제본 boston_hub의 에포크(epoch) 번호 매트릭스를 표시합니다.

표 1. boston_hub 복제본의 세 행 에포크(epoch) 번호 매트릭스
  boston_hub에서 시작된 오퍼레이션 bangalore에서 시작된 오퍼레이션 sanfran_hub에서 시작된 오퍼레이션
boston_hub의 해당 상태 레코드 950 653 504
boston_hubsanfran_hub 상태 추정 912 653 504
boston_hubbangalore 상태 추정 709 653 221
이 매트릭스의 컨텐츠는 lsepoch 명령으로 보고됩니다.
multiutil lsepoch -clan telecomm -site boston_hub -family PRODA -user susan -password passwd
Multiutil: Estimates of the epochs from each site replayed at site ’boston_hub’ (@minuteman):
boston_hub: 950
sanfran_hub: 504
bangalore: 653
Multiutil: Estimates of the epochs from each site replayed at site ’sanfran_hub’ (@goldengate):
boston_hub: 912
sanfran_hub: 504
bangalore: 653
Multiutil: Estimates of the epochs from each site replayed at site ’bangalore’ (@ramohalli):
boston_hub: 709
sanfran_hub: 221
bangalore: 653
Boston 사이트의 syncreplica –export 명령은 이 매트릭스를 사용하여 bangalore 복제본의 업데이트를 내보냅니다.
  1. boston_hub 복제본에 950개의 로컬 오퍼레이션(매트릭스 상단 왼쪽 구석의 숫자)이 있으며 bangalore 복제본에 oplog ID 709(하단 왼쪽 구석의 숫자)를 통해 모든 오퍼레이션을 가져왔다고 추정합니다.
  2. sanfran_hub 복제본에서 시작된 오퍼레이션의 경우 boston_hub가 최대 oplog ID 504까지의 모든 오퍼레이션을 가져오며 bangalore가 oplog ID 221까지의 모든 오퍼레이션을 가져왔다고 추정합니다.
  3. boston_hubbangalore에 송신하는 업데이트 패킷은 boston_hub 오퍼레이션 710-950 및 sanfran_hub 오퍼레이션 222-504를 포함합니다. boston_hub 복제본에서의 lsepoch 명령 결과는 이제 다음과 같이 표시됩니다.
    multiutil lsepoch -clan telecomm -site boston_hub -family PRODA -user susan -password passwd 
    Multiutil: Estimates of the epochs from each site replayed at site ’boston_hub’ (@minuteman):
    boston_hub: 950
    sanfran_hub: 504
    bangalore: 653
    Multiutil: Estimates of the epochs from each site replayed at site ’sanfran_hub’ (@goldengate):
    boston_hub: 912
    sanfran_hub: 504
    bangalore: 653
    Multiutil: Estimates of the epochs from each site replayed at site ’bangalore’ (@ramohalli):
    boston_hub: 950
    sanfran_hub: 504
    bangalore: 653

피드백