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

Ops Manager 애플리케이션 데이터베이스 백업

애플리케이션 데이터베이스는 Ops Manager 설정, 작업 기록 및 백업 메타데이터 저장합니다. 애플리케이션 데이터베이스를 외부 애플리케이션 데이터베이스로 배포 경우, Kubernetes Operator는 이를 표준 MongoDB 사용자 지정 리소스 로 관리하므로 Ops Manager Kubernetes Operator가 관리하는 다른 MongoDB deployment 와 마찬가지로 백업 및 복원 할 수 있습니다.

외부 애플리케이션 데이터베이스를 배포 하려면 다음 절차를 참조하세요.

내부적으로 managed 애플리케이션 데이터베이스를 사용하는 Ops Manager 배포서버 표준 백업 도구로는 연결할 수 없는 Ops Manager 사용자 지정 리소스 내에 애플리케이션 데이터베이스를 저장합니다. Ops Manager 자체에 장애가 발생하면 관리하는 배포에 대한 제어력을 잃을 수 있습니다.

외부 애플리케이션 데이터베이스를 백업하면 다음과 같은 요구 사항이 해결됩니다.

  • 재해 복구. 데이터 손실, 데이터 손상 또는 구성 변경 실패 후 애플리케이션 데이터베이스를 복원합니다.

  • 운영 안전망. 잘못된 대량 쓰기 (write) 발생하기 전의 시점으로 롤백합니다.

  • 복구 목표를 낮춥니다. 지속적인 oplog 캡처는 주기적인 스냅샷만 기반으로 하는 전략보다 낮은 복구 점 및 복구 시간 목표를 지원합니다.

Ops Manager 애플리케이션 데이터베이스 데이터의 복사본과 oplog 항목의 연속 스트림 유지하므로 다음을 수행할 수 있습니다.

  • 애플리케이션 데이터베이스의 전체 스냅샷 새 배포 또는 기존 배포서버 로 복원합니다.

  • 선택한 타임스탬프로 oplog 재생하여 애플리케이션 데이터베이스를 스냅샷 사이의 원하는 점 으로 복원합니다.

  • Query a backup snapshot without restoring it. To learn more, see Configure Queryable Backups for Ops Manager Resources.

  • 선택적으로 변경할 수 없는 스냅샷을 사용하여 보존 및 컴플라이언스 요구 사항을 충족합니다.

외부 애플리케이션 데이터베이스 배포서버 다음 리소스를 사용합니다.

Resource
설명

관리 Ops Manager

내부적으로 managed 자체 애플리케이션 데이터베이스가 있는 Ops Manager 리소스 . 관리 Ops Manager 인스턴스 데이터베이스를 관리 하지 않습니다. 외부 애플리케이션 데이터베이스가 포함된 프로젝트 관리하며, 프라이머리 Ops Manager 인스턴스 분실한 경우 복구 엔진 역할을 합니다. 다른 가용영역 과 같은 별도의 장애 도메인에 배포합니다.

외부 애플리케이션 데이터베이스

A MongoDB resource with spec.role set to AppDB. To learn more, see MongoDB Database Resource Specification. Its name must be <primary-om-name>-db. The management Ops Manager instance manages this resource as a project, so you can enable backup on it like any other MongoDB resource.

프라이머리 MongoDB Ops Manager

The Ops Manager resource that manages your databases. It omits spec.applicationDatabase and references the external Application Database with spec.externalApplicationDatabaseRef.

Diagram of an external Application Database deployment. The management Ops Manager instance with its own internal Application Database, the external Application Database MongoDB resource, and the primary Ops Manager instance that references the external Application Database.
클릭하여 확대

Because a new Ops Manager instance can't start without an Application Database, and a MongoDB resource with spec.role set to AppDB can't reconcile without an available Ops Manager instance, the management Ops Manager instance is a prerequisite for an external Application Database. Deploy it before you deploy the external Application Database.

프라이머리 Ops Manager 인스턴스 분실한 경우, 관리 Ops Manager 인스턴스 사용하여 외부 애플리케이션 데이터베이스를 복원 다음, 복원된 애플리케이션 데이터베이스에 대해 프라이머리 Ops Manager 인스턴스 다시 생성한 다음 MongoDB 워크로드를 복원 .

Ops Manager stores backup metadata in the Application Database, and both the Ops Manager Application and the Backup Daemon connect to the Application Database. When you reference an external Application Database with spec.externalApplicationDatabaseRef, the Kubernetes Operator handles this connection for you:

  • The Kubernetes Operator resolves the TLS configuration and CA of the referenced MongoDB resource and applies it to both the Ops Manager StatefulSet and the Backup Daemon StatefulSet. The Backup Daemon trusts a TLS-enabled external Application Database the same way it trusts an internally managed one.

  • 백업 디먼 Kubernetes Operator가 Ops Manager 애플리케이션 에 대해 계산하는 것과 동일한 연결 문자열 사용하여 연결합니다.

Enabling backup doesn't change. You set spec.backup.enabled on the primary Ops Manager resource, as you would for an internally managed Application Database. The only difference is where the Application Database runs.

To back up the external Application Database itself, enable backup on the MongoDB resource that represents it, in the project that the management Ops Manager instance manages. To learn more, see Configure MongoDB Database Backups.

내부적으로 managed 애플리케이션 데이터베이스와 외부 애플리케이션 데이터베이스 간의 마이그레이션 중에 Kubernetes 연산자는 애플리케이션 데이터베이스 StatefulSet에 주석을 설정하여 StatefulSet가 소유자를 변경할 준비가 되었음을 기록 . Kubernetes Operator는 이러한 주석을 설정하고 읽습니다. 직접 설정하다 하지 마세요.

주석
설명

mongodb.com/appdb-migration-ready

The Ops Manager resource released the StatefulSet so that the MongoDB resource can take ownership of it. The Kubernetes Operator sets this annotation when you migrate from an internally managed Application Database to an external Application Database. To learn more, see Migrate an Application Database to an External Deployment.

mongodb.com/appdb-reverse-migration-ready

The MongoDB resource released the StatefulSet so that the Ops Manager resource can reclaim it. The Kubernetes Operator sets this annotation when you return an external Application Database to internal management. To learn more, see Return an External Application Database to Ops Manager.

외부 애플리케이션 데이터베이스를 백업하기 전에 다음 작업을 완료하세요.

외부 애플리케이션 데이터베이스 백업 에는 다음과 같은 제한 사항이 있습니다.

  • The external Application Database must be a MongoDB resource on a single Kubernetes cluster. The Kubernetes Operator rejects MongoDBMultiCluster resources and MongoDB resources that use a multi-cluster topology. Multi-cluster support is planned for a later release.

  • 이 기능 리전 또는 Kubernetes 클러스터 간에 애플리케이션 데이터베이스를 복제하지 않습니다.

  • 이 기능 애플리케이션 데이터베이스 자체 이외의 Ops Manager 상태 백업하거나 복원 하지 않습니다.

  • 이 기능 Ops Manager 로 관리 MongoDB 배포를 백업 또는 복원 방법을 변경하지 않습니다.

  • The Kubernetes Operator doesn't support automationConfig overrides for an external Application Database, because the MongoDB resource has no equivalent setting.

  • The Kubernetes Operator doesn't support spec.applicationDatabase.passwordSecretKeyRef during migration to an external Application Database. The Kubernetes Operator generates a new password and rotates any password that you provided.

  • 기존 MongoDB deployment 외부 애플리케이션 데이터베이스로 참조하는 경우 해당 배포서버 의 일상적인 관리 에 대한 책임은 사용자에게 있습니다. Kubernetes Operator는 MongoDB 리소스 구성을 내부적으로 managed 애플리케이션 데이터베이스 구성과 조정하는 도구를 제공하지 않습니다. 해당 구성은 직접 지정해야 합니다.