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

Ops Manager 리소스에 대한 쿼리 가능 백업 구성

Operator에서 배포하는 MongoDB Ops Manager 리소스에 대해 쿼리 가능한 백업 을 구성할 수 있습니다.Kubernetes

참고

Ops Manager 설명서에서는 쿼리 가능 백업을 쿼리 가능 스냅샷 또는 쿼리 가능 복원이라고도 합니다.

쿼리 가능 백업을 사용하면 MongoDB Ops Manager 리소스에서 특정 백업 스냅샷에 대한 쿼리를 실행할 수 있습니다. MongoDB Ops Manager 백업을 쿼리하면 여러 스냅샷의 데이터를 비교하고 데이터 복원에 사용할 최상의 스냅샷을 식별하는 데 도움이 됩니다.

다음 절차에서는 다음을 수행합니다.

  • Create the queryable.pem file that holds the certificates for accessing the backup snapshots that you intend to query.

  • Create the secret containing the queryable.pem file.

  • 쿼리 가능 백업의 시크릿을 사용하도록 Ops Manager 사용자 지정 리소스를 구성합니다.

  • Ops Manager 사용자 지정 리소스 구성을 저장하고 적용합니다.

Kubernetes 연산자가 사용자 지정 리소스에 대해 업데이트된 구성을 배포하면 Ops Manager는 spec.backup.queryableBackupSecretRef.name 매개변수에서 시크릿을 읽을 수 있습니다. 이제 백업 스냅샷에 액세스하고 쿼리를 실행할 수 있습니다.

쿼리 가능 백업을 구성하기 전에 다음 작업을 완료하세요.

1

아직 실행하지 않았다면 다음 명령을 실행하여 생성한 네임스페이스에서 kubectl 명령을 모두 실행합니다.

참고

다중 Kubernetes 클러스터 MongoDB deployment에서 MongoDB Ops Manager 리소스를 배포하는 경우:

  • context을 중앙 클러스터의 이름(예: kubectl config set context "$MDB_CENTRAL_CLUSTER_FULL_NAME")으로 설정합니다.

  • --namespace 를 다중 Kubernetes 클러스터 MongoDB 배포에 사용한 것과 동일한 범위 (예: kubectl config --namespace "mongodb" 로 설정합니다.

kubectl config set-context $(kubectl config current-context) --namespace=<metadata.namespace>
2

Create the Ops Manager queryable.pem file that you will use for accessing and querying backups based on your deployment's TLS requirements. The PEM file contains a public key certificate and its associated private key that are needed to access and run queries on backup snapshots in Ops Manager.

To learn more about the PEM file's requirements, see Authorization and Authentication Requirements in Ops Manager.

3

다음 명령을 실행하여 이전 단계에서 생성한 queryable.pem 파일로 시크릿을 생성합니다.

kubectl create secret generic queryable-pem --from-file=./queryable.pem

HashiCorp Vault를 시크릿 저장 도구로 사용하는 경우 대신 Vault Secret을 생성할 수 있습니다.

시크릿 스토리지 옵션에 대한 자세한 내용은 시크릿 스토리지 구성을 참조하세요.

4

Configure spec.backup.queryableBackupSecretRef.name to reference the queryable.pem secret.

1 apiVersion: mongodb.com/v1
2 kind: MongoDBOpsManager
3 metadata:
4 name: ops-manager
5 spec:
6 replicas: 1
7 version: 8.0.0
8 adminCredentials: ops-manager-admin-secret
9 backup:
10 enabled: true
11 queryableBackupSecretRef:
12 name: om-queryable-pem
5
6

Ops Manager 리소스 정의의 파일 이름에 대해 다음 kubectl 명령을 호출합니다.

kubectl apply -f <opsmgr-resource>.yaml

Ops Manager 리소스 정의에 변경 사항을 적용하면 Kubernetes는 Ops Manager StatefulSet를 업데이트하고, 볼륨을 생성하고, Secret을 마운트합니다.

7
  1. 영구 볼륨 클레임 목록을 가져옵니다.

    kubectl get pvc
  2. 비밀 얻기:

    kubectl get secrets
  3. Ops Manager 리소스의 상태를 확인합니다.

    kubectl get om <resource-name> -o yaml -w

    -w 플래그는 'watch'를 의미합니다. "watch" 플래그를 설정하면 구성이 변경될 때 상태 단계가 Running 상태를 달성할 때까지 출력이 즉시 새로 고침됩니다.

    리소스 배포 상태에 대해 자세히 알아보려면 Kubernetes 연산자 문제 해결을 참조하세요.

쿼리 가능 백업을 구성한 후 이를 쿼리하여 데이터 복원에 사용할 최상의 백업 스냅샷을 선택할 수 있습니다.

If you require all containers in your MongoDB deployment to be fully static, disable queryable backups as a best practice. This is so the Backup Daemon Service doesn't attempt to download the MongoDB binaries from Ops Manager. Downloading binaries undermines the immutable nature of static containers and is only possible with non-static containers. To learn more, see Static Containers (Public Preview).

쿼리 가능 백업을 비활성화하려면 다음을 수행합니다.

1

MongoDBOpsManager 사용자 지정 리소스에서 spec.configuration.mms.featureFlag.backup.queryable 및 spec.configuration.mms.featureFlag.backup.wt.queryable 을(를) disabled(으)로 설정합니다.

1apiVersion: mongodb.com/v1
2kind: MongoDBOpsManager
3metadata:
4 name: opsmgr-resource
5spec:
6 configuration:
7 mms.featureFlag.backup.wt.queryable: "disabled"
8 mms.featureFlag.backup.queryable: "disabled"
2
3

Ops Manager 리소스 정의의 파일 이름에 대해 다음 kubectl 명령을 호출합니다.

kubectl apply -f <opsmgr-resource>.yaml
4

MongoDB Ops Manager UI 오른쪽 상단 모서리에 있는 Admin 를 클릭합니다. Admin 화면에서 General 를 클릭합니다. Ops Manager Config Backup.

5

Navigate to the Queryable Snapshot Configuration section and delete the Proxy Server PEM File.

6
이 페이지 평가하기