설명
sh.enableBalancing(namespace)샤드 collection의 지정된 네임스페이스에 대한 밸런서를 활성화합니다.
중요
You can only run
sh.enableBalancing()on amongosinstance.sh.enableBalancing()errors if run onmongodinstance.The
sh.enableBalancing()method has the following parameter:Parameter유형설명namespace문자열
컬렉션의 네임스페이스 입니다.
중요
sh.enableBalancing()does not start balancing. Rather, it allows balancing of this collection the next time the balancer runs.밸런싱 프로세스에 대한 자세한 내용은 샤드 클러스터 밸런서 및 샤드 클러스터 밸런서 관리 를 참조하세요 .
호환성
이 메서드는 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전