AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

rs.printReplicationInfo() (mongosh 메서드)

rs.printReplicationInfo()

Prints a formatted report of the replica set member's oplog. The displayed report formats the data returned by db.getReplicationInfo(). The output of rs.printReplicationInfo() is identical to that of db.printReplicationInfo().

참고

The rs.printReplicationInfo() method run in mongosh does not return JSON. Use rs.printReplicationInfo() for manual inspection, and db.getReplicationInfo() in scripts.

The following example is a sample output from the rs.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)

rs.printReplicationInfo() formats and prints the data returned by db.getReplicationInfo():

구성된 oplog 크기

db.getReplicationInfo().logSizeMB 값을 표시합니다.

로그 길이 시작에서 끝

db.getReplicationInfo().timeDiffdb.getReplicationInfo().timeDiffHours 값을 표시합니다.

oplog 첫 번째 이벤트 시간

db.getReplicationInfo().tFirst 을(를) 표시합니다.

oplog 마지막 이벤트 시간

db.getReplicationInfo().tLast 을(를) 표시합니다.

지금

db.getReplicationInfo().now 을(를) 표시합니다.

데이터에 대한 설명은 db.getReplicationInfo() 을(를) 참조하세요.

이 메서드는 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.

  • MongoDB Atlas: 클라우드에서의 MongoDB 배포를 위한 완전 관리형 서비스

중요

이 명령은 M0 및 Flex 클러스터에서 지원되지 않습니다. 자세한 내용은 지원되지 않는 명령을 참조하세요.

이 페이지 평가하기

이 페이지의 내용