문서 메뉴

문서 홈애플리케이션 개발MongoDB 매뉴얼

shardConnPoolStats

이 페이지의 내용

  • 정의
  • 출력
shardConnPoolStats

MongoDB 5.0에서 제거되었습니다. 대신 connPoolStats를 사용하세요.

샤드 연결 풀의 풀링 및 캐시된 연결에 대한 정보를 반환합니다. 이 명령은 연결 풀의 스레드별 연결 캐시에 대한 정보도 반환합니다.

shardConnPoolStats 명령은 다음 구문을 사용합니다.

{ shardConnPoolStats: 1 }

샤드 연결 풀은 샤드 cluster의 멤버 간 연결에만 적용됩니다. cluster의 mongos 인스턴스는 연결 풀을 사용하여 클라이언트 읽기 및 쓰기를 실행합니다. cluster의 mongod 인스턴스는 mapReduce 를 실행하여 다른 샤드의 임시 collection을 쿼리할 때 풀을 사용합니다.

cluster에 연결이 필요하면 MongoDB는 샤딩된 연결 풀에서 스레드별 연결 캐시로 연결을 가져옵니다. MongoDB는 모든 작업 후에 연결을 연결 풀로 반환합니다.

shardConnPoolStats.hosts

cluster의 각 config 서버, 복제본 세트독립형 인스턴스 에 대한 연결 상태를 표시합니다.

shardConnPoolStats.hosts.<host>.available

이 호스트가 mongos 에 연결하기 위해 사용할 수 있는 연결의 건수입니다.

shardConnPoolStats.hosts.<host>.created

호스트가 mongos 에 연결하기 위해 생성한 연결 수입니다.

shardConnPoolStats.replicaSets

복제본 세트와 관련된 정보를 표시합니다.

shardConnPoolStats.replicaSets.<name>.host

각 복제본 세트 멤버에 대해 보고하는 문서 배열을 보유합니다. 이러한 값은 복제본 세트 상태 값에서 파생됩니다.

shardConnPoolStats.replicaSets.<name>.host[n].addr

[hostname]:[port] 형식의 호스트 주소입니다.

shardConnPoolStats.replicaSets.<name>.host[n].ok

이 필드는 내부용입니다. mongos 가 인스턴스에 연결할 수 없거나 연결 예외 또는 오류가 발생하면 false 를 보고합니다.

shardConnPoolStats.replicaSets.<name>.host[n].ismaster

true 인 경우 호스트는 복제본 세트의 프라이머리 입니다.

shardConnPoolStats.replicaSets.<name>.host[n].hidden

이 호스트가 true 인 경우 호스트는 복제본 세트의 숨겨진 멤버 입니다.

shardConnPoolStats.replicaSets.<name>.host[n].secondary

이 호스트가 true 인 경우 호스트는 복제본 세트의 숨겨진 멤버 입니다.

이 호스트가 true 인 경우 호스트는 복제본 세트의 세컨더리 멤버입니다.

shardConnPoolStats.replicaSets.<name>.host[n].pingTimeMillis

mongos 부터 이 멤버까지의 지연 시간(단위: 밀리초)입니다.

shardConnPoolStats.replicaSets.<name>.host[n].tags

tags 문서에는 복제본 세트 멤버를 위한 사용자 정의 태그 필드와 값 쌍이 포함되어 있습니다.

{ "<tag1>": "<string1>", "<tag2>": "<string2>",... }

자세한 내용은 복제본 세트 태그 세트 구성에서 확인하세요.

다음도 참조하세요.

shardConnPoolStats.createdByType

클러스터의 연결 풀에 있는 연결 수입니다.

shardConnPoolStats.createdByType.master

샤드에 대한 연결 수입니다.

shardConnPoolStats.createdByType.set

복제본 세트에 대한 연결 수입니다.

shardConnPoolStats.createdByType.sync

config 데이터베이스에 대한 연결 수입니다.

shardConnPoolStats.totalAvailable

mongos 에서 cluster의 config 서버, 복제본 세트 및 독립형 mongod 인스턴스까지 사용할 수 있는 연결 수입니다.

shardConnPoolStats.totalCreated

mongos 이(가) cluster의 다른 노드에 대해 생성한 연결 수입니다.

shardConnPoolStats.threads

스레드별 연결 캐시에 대한 정보를 표시합니다.

shardConnPoolStats.threads.hosts

각 수신 클라이언트 연결을 표시합니다. mongos 의 경우 이 배열 필드는 수신 클라이언트 스레드당 하나의 문서를 표시합니다. mongod 의 경우 배열은 수신 샤딩된 mapReduce 클라이언트 스레드당 하나의 항목을 표시합니다.

shardConnPoolStats.threads.hosts.host

연결을 사용하는 호스트입니다. 호스트는 config 서버, 복제본 세트 또는 독립형 인스턴스일 수 있습니다.

shardConnPoolStats.threads.hosts.created

호스트가 풀에서 연결을 가져온 횟수입니다.

shardConnPoolStats.threads.hosts.avail

스레드의 가용성입니다.

shardConnPoolStats.threads.seenNS

지금까지 이 연결에 사용된 네임스페이스입니다.

← 서버 상태
상단 →

이 페이지의 내용