最も基本的な検証方法は、ソースクラスターの同期された各コレクション内のドキュメント数と宛先クラスターの数を比較することです。
このメソッドは、挿入専用のワークロードを持つクラスターに対して実行された場合にのみ、同期の成功を検証します。 クラスターに挿入専用のワークロードがない場合は、別の検証方法を使用します。
手順
1
ソース ドキュメントをカウント
Run the countDocuments() method on each synced collection on the source cluster:
db.us_accounts.countDocuments()
345
ドキュメントの数に注意します。
2
カウント先ドキュメント
Run the countDocuments() method on each synced collection on the destination cluster:
db.us_accounts.countDocuments()
345
ドキュメントの数に注意します。