문서 메뉴
문서 홈
/
MongoDB 아틀라스
/ /

M0, M2 및 M5 클러스터 및 서버리스 인스턴스에서만 사용 가능한 명령

이 페이지의 내용

  • atlasSize

다음 명령은 Atlas 무료 계층 및 공유 계층 클러스터와 서버리스 인스턴스에만 적용됩니다.

다음 데이터베이스 통계에 대한 프리 티어 및 공유 티어 클러스터와 서버리스 인스턴스의 모든 데이터베이스에 대한 누적 크기를 반환합니다.

{
"totals": {
"collections": [number-total-collections],
"views": [number-total-views],
"objects": [number-total-objects],
"avgObjSize": [number-average-across-all],
"dataSize": [number-total-dataSize],
"storageSize": [number-total-storageSize],
"numExtents": [number-total-numExtents],
"indexes": [number-total-indexes],
"indexSize": [number-total-indexSize],
"fileSize": [number-total-fileSize],
"numDatabases": [number-total-databases],
"indexSize": [number-total-indexSize]
},
"atlasSize": [number-total-data-plus-total-index-size],
"ok": 1
}

atlasSize 필드는 cluster에 있는 데이터의 총 크기와 인덱스의 조합을 나타냅니다.

db.runCommand({atlasSize:1})
{
"totals" : {
"collections" : 11,
"views" : 0,
"objects" : NumberLong(530025),
"avgObjSize" : 277.0923742138365,
"dataSize" : NumberLong(532890980),
"storageSize" : NumberLong(555319296),
"numExtents" : NumberLong(0),
"indexes" : 11,
"indexSize" : NumberLong(4792320),
"fileSize" : NumberLong(0),
"numDatabases" : 4
},
"atlasSize" : NumberLong(537683300),
"ok" : 1
}
← 지원되지 않는 명령

이 페이지의 내용