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

db.printSecondaryReplicationInfo() (mongosh 메서드)

db.printSecondaryReplicationInfo()

세트의 세컨더리 멤버의 관점에서 복제본 세트 상태에 대한 형식화된 보고서를 인쇄합니다. 출력은 rs.printSecondaryReplicationInfo() 메서드와 동일합니다.

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

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

중요

This command is not supported in M0 and Flex clusters. For more information, see Unsupported Commands.

Example db.printSecondaryReplicationInfo() output when run on a replica set with two secondary members:

source: m1.example.net:27002
{
syncedTo: 'Mon Mar 01 2021 16:30:50 GMT-0800 (PST)',
replLag: '0 secs (0 hrs) behind the primary '
}
---
source: m2.example.net:27003
{
syncedTo: 'Mon Mar 01 2021 16:30:50 GMT-0800 (PST)',
replLag: '0 secs (0 hrs) behind the primary '
}

참고

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

프라이머리 멤버의 비활성 기간이 members[n].secondaryDelaySecs 값보다 큰 경우 지연된 멤버는 프라이머리 멤버보다 0초 뒤처진 것으로 표시될 수 있습니다.

A member may show a negative time value behind the primary when db.printSecondaryReplicationInfo() is run. This is expected if db.printSecondaryReplicationInfo() is run after a secondary replicates a write that follows a period of inactivity, but before the secondary receives a heartbeat from the primary with the latest optime.

참고

보조 노드에서 보고한 지연은 cluster 상태를 대표하지 않을 수 있습니다. 값이 음수라고 해서 세컨더리가 프라이머리보다 앞서 있다는 의미는 아닙니다.

To obtain the most current status for your replica set, run db.printSecondaryReplicationInfo() on the primary.

이 페이지 평가하기

이 페이지의 내용