정의
db.printReplicationInfo()복제본 세트 멤버의 oplog 에 대한 형식화된 보고서를 인쇄합니다. 표시된 보고서는
db.getReplicationInfo()에서 반환된 데이터의 형식을 지정합니다.The output of
db.printReplicationInfo()is identical to that ofrs.printReplicationInfo().참고
The
db.printReplicationInfo()method run inmongoshdoes not return JSON. Usedb.printReplicationInfo()for manual inspection, anddb.getReplicationInfo()in scripts.
출력 예시
The following example is a sample output from the db.printReplicationInfo() method run on the primary:
configured oplog size: 192MB log length start to end: 65422secs (18.17hrs) oplog first event time: Mon Jun 23 2014 17:47:18 GMT-0400 (EDT) oplog last event time: Tue Jun 24 2014 11:57:40 GMT-0400 (EDT) now: Thu Jun 26 2014 14:24:39 GMT-0400 (EDT)
출력 필드
db.printReplicationInfo() formats and prints the data returned by db.getReplicationInfo():
- 구성된 oplog 크기
db.getReplicationInfo().logSizeMB값을 표시합니다.- 로그 길이 시작에서 끝
db.getReplicationInfo().timeDiff및db.getReplicationInfo().timeDiffHours값을 표시합니다.- oplog 첫 번째 이벤트 시간
db.getReplicationInfo().tFirst을(를) 표시합니다.- oplog 마지막 이벤트 시간
db.getReplicationInfo().tLast을(를) 표시합니다.- 지금
db.getReplicationInfo().now을(를) 표시합니다.
데이터에 대한 설명은 db.getReplicationInfo() 을(를) 참조하세요.
호환성
이 메서드는 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
- MongoDB Atlas: 클라우드에서의 MongoDB 배포를 위한 완전 관리형 서비스
참고
이 명령은 모든 MongoDB Atlas 클러스터에서 지원됩니다. 모든 명령에 대한 Atlas 지원에 관해 자세히 알아보려면 지원되지 않는 명령을 참조하세요.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전