에포크(epoch) 번호

에포크(epoch) 번호는 특정 복제본에서 시작된 총 오퍼레이션 수입니다.

각 복제본의 오퍼레이션 추적그림 2에서 boston_hub의 에포크(epoch) 번호는 950입니다.

MultiSite 동기화 계획은 복제본 사이에서 전송된 데이터의 크기를 최소화하려고 합니다. 각 복제본이 다음과 같이 에포크(epoch) 번호를 추적합니다.
표 1는 해당 에포크(epoch) 번호가 에포크(epoch) 번호 매트릭스로 분류되는 방식을 나타냅니다. 각 복제본은 로컬에서 작업이 발생하고 기타 복제본과 업데이트 패킷을 교환할 때마다 해당 행을 개정하여 해당 고유 매트릭스를 유지보수합니다.
표 1. boston_hub의 두 행 에포크(epoch) 번호 매트릭스
  boston_hub에서 시작된 오퍼레이션 sanfran_hub에서 시작된 오퍼레이션
boston_hub의 해당 상태 레코드 950 504
boston_hubsanfran_hub 상태 추정 912 504
이 매트릭스의 컨텐츠는 boston_hub 복제본에서 lsepoch 명령으로 보고됩니다.
multiutil lsepoch -clan telecomm -site boston_hub -family PRODA -user bostonadmin -password secret 
Multiutil: Estimates of the epochs from each site replayed at site ’boston_hub’ (@minuteman):
boston_hub: 950
sanfran_hub: 504
Multiutil: Estimates of the epochs from each site replayed at site ’sanfran_hub’ (@goldengate):
boston_hub: 912
sanfran_hub: 504
boston_hub에서 입력된 syncreplica –export 명령은 다음과 같이 이 매트릭스를 사용하여 sanfran_hub용으로 정해진 업데이트를 생성합니다.
  1. boston_hub 복제본에서 로컬 오퍼레이션의 수는 950(매트릭스 상단 왼쪽 구석의 숫자)이며 sanfran_hub가 oplog ID 912(하단 왼쪽 구석)를 통해 모든 오퍼레이션을 가져왔다고 추정합니다.
  2. boston_hub 복제본이 sanfran_hub 복제본에 송신하는 업데이트 패킷은 boston_hub oplog 항목 913-950을 포함합니다. Boston 관리자가 syncreplica –export를 호출하고 나면 sanfran_hub 행이 다음과 같이 업데이트됩니다.
    multiutil lsepoch -clan telecomm -site boston_hub -family PRODA -user lexadmin -password secret 
    Multiutil: Estimates of the epochs from each site replayed at site ’boston_hub’ (@minuteman):
    boston_hub: 950
    sanfran_hub: 504
    Multiutil: Estimates of the epochs from each site replayed at site ’sanfran_hub’ (@goldengate):
    boston_hub: 950
    sanfran_hub: 504

피드백