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

샤드 키 표시

모든 샤딩된 컬렉션에는 샤드 키가 있습니다. 샤드 키 표시하려면 mongos 인스턴스에 연결하여 db.printShardingStatus() 메서드를 실행.

db.printShardingStatus()

출력은 다음과 같습니다.

<dbname>.<collection>
shard key: { <shard key> : <1 or hashed> }
unique: <boolean>
balancing: <boolean>
allowMigrations: <boolean>
chunks:
<shard name1> <number of chunks>
<shard name2> <number of chunks>
...
{ <shard key>: <min range1> } -->> { <shard key> : <max range1> } on : <shard name> <last modified timestamp>
{ <shard key>: <min range2> } -->> { <shard key> : <max range2> } on : <shard name> <last modified timestamp>
...
tag: <tag1> { <shard key> : <min range1> } -->> { <shard key> : <max range1> }
...

db.printShardingStatus() 출력에 대한 자세한 내용은 sh.status() 페이지의 샤드 컬렉션 섹션을 참조하세요.

이 페이지 평가하기