가장 기본적인 확인 방법은 소스 cluster의 각 동기화된 collection에 있는 문서 수를 대상 cluster의 수와 비교하는 것입니다.
이 메서드는 삽입 전용 워크로드가 있는 cluster에 대해 실행할 때만 성공적인 동기화를 확인합니다. cluster에 대한 삽입 전용 워크로드가 없는 경우 다른 확인 방법을 사용하세요.
단계
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
문서 수에 유의하세요.