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

balancerStop (데이터베이스 명령)

balancerStop

샤드 cluster에서 밸런서를 비활성화합니다. 밸런싱 라운드가 진행 중인 경우, 작업은 밸런싱이 완료될 때까지 기다립니다.

You can only issue the balancerStop command against the admin database on a mongos instance.

MongoDB 7.0부터 밸런서를 중지하면 샤딩된 클러스터에 대한 AutoMerger 도 비활성화됩니다.

중요

밸런서 를 장기간 비활성화된 상태로 두면 샤드의 균형이 맞지 않아 클러스터 성능이 저하될 수 있습니다. 필요한 경우에만 밸런서 를 비활성화하고, 유지 관리가 완료되면 밸런서 를 다시 활성화해야 합니다.

팁

In mongosh, this command can also be run through the sh.stopBalancer() helper method.

Helper methods are convenient for mongosh users, but they may not return the same level of information as database commands. In cases where the convenience is not needed or the additional return fields are required, use the database command.

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

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

명령은 다음과 같은 구문을 가집니다:

db.adminCommand(
{
balancerStop: 1,
maxTimeMS: <number>
}
)
필드
유형
설명

balancerStop

any

모든 값.

maxTimeMS

integer

밸런서를 비활성화하는 데 걸리는 시간 제한입니다.

기본값은 60000밀리초입니다.

밸런서 스레드를 중지하려면 mongos 인스턴스에 연결하고 다음 명령을 실행합니다.

db.adminCommand( { balancerStop: 1 } )
이 페이지 평가하기