間接同步化

如果系列包含超過兩個複本,同步化可能間接發生。 複本可在更新封包中包含非本端變更。

例如,如果 boston_hub 複本與 sanfran_hubbangalore 複本交換更新項目, 它會傳送先前從 sanfran_hub 接收的 bangalore oplog 項目。 這些項目不一定會在 sanfran_hub 的變更上使複本 bangalore 保持最新。 (從 sanfran_hub 傳送到 bangalore 的更新項目會使 bangalore 保持最新)。

註: 如果複本不直接從其系列中的某些複本接收封包,則在那些複本中,它的列可能包含零。 這是預期的行為。

表 1 顯示複本 boston_hub 的新紀元數字矩陣。

表 1. 位於複本 boston_hub 的三列新紀元數字矩陣
  在 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 已匯入到 ID 221 為止的所有作業。
  3. boston_hub 傳送至 bangalore 的更新封包包括 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
相關參考
lsepoch
syncreplica

意見