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

db.printReplicationInfo() (mongosh 메서드)

db.printReplicationInfo()

복제본 세트 멤버의 oplog 에 대한 형식화된 보고서를 인쇄합니다. 표시된 보고서는 db.getReplicationInfo() 에서 반환된 데이터의 형식을 지정합니다.

The output of db.printReplicationInfo() is identical to that of rs.printReplicationInfo().

참고

The db.printReplicationInfo() method run in mongosh does not return JSON. Use db.printReplicationInfo() for manual inspection, and db.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: The fully managed service for MongoDB deployments in the cloud

참고

This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

이 페이지 평가하기

이 페이지의 내용