ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs Menu

자체 관리형 샤딩된 클러스터의 백업 창 스케줄 지정

이 페이지의 내용

In a 샤딩된 클러스터, the balancer process is responsible for distributing sharded data around the cluster, so that each 샤드 has roughly the same amount of data.

However, when creating backups from a sharded cluster it is important that you disable the balancer while taking backups to ensure that no chunk migrations affect the content of the backup captured by the backup procedure.

참고

밸런서를 비활성화하는 것은 mongodump를 호출하거나 특정 시간에 mongodump를 호출하는 작업을 예약하여 수동으로 백업을 수행할 때만 필요합니다.

조정된 백업 및 복원 프로세스를 사용할 때 밸런서를 사용하지 않도록 설정할 필요가 없습니다.

Using the procedure outlined in the section 밸런서 비활성화 you can manually stop the balancer process temporarily. As an alternative, you can use the following procedure to define a balancing window so that the balancer is always disabled during your automated backup operation.

mongodumpmongorestore를 샤딩된 클러스터의 백업 전략으로 사용하려면 데이터베이스 덤프를 사용하여 자체 관리 샤딩된 클러스터 백업을 참조하세요.

또한 샤딩된 클러스터는 샤드 간 트랜잭션의 원자성 보장을 유지하는 다음과 같은 조정된 백업 및 복원 프로세스 중 하나를 사용할 수 있습니다.

If you have an automated backup schedule, you can disable all balancing operations for a period of time. For instance, consider the following command:

use config
db.settings.updateOne(
{ _id : "balancer" },
{ $set : { activeWindow : { start : "06:00", stop : "23:00" } } },
true
)

This operation configures the balancer to run between 6:00am and 11:00pm, server time. Schedule your backup operation to run and complete outside of this time. Ensure that the backup can complete outside the window when the balancer is running and that the balancer can effectively balance the collection among the shards in the window allotted to each.

이 페이지의 내용