이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 15. Backup database compression for operator-based deployments


Ansible Automation Platform 2.5 supports database compression for operator-based backup operations. You can enable or disable compression globally or per component to optimize backup size and performance.

When you enable database compression, the operator compresses the PostgreSQL database dump for each component. This reduces the overall backup size but increases CPU usage during the backup process.

15.1. Backup compression configuration parameters

Use these compression parameters to configure the AnsibleAutomationPlatformBackup custom resource:

Expand
ParameterDescriptionDefault

spec.use_db_compression

Enables or disables database dump compression for all components globally.

True

spec.gateway.use_db_compression

Overrides the global compression setting for the platform gateway.

Value of spec.use_db_compression

spec.controller.use_db_compression

Overrides the global compression setting for automation controller.

Value of spec.use_db_compression

spec.hub.use_db_compression

Overrides the global compression setting for automation hub.

Value of spec.use_db_compression

spec.eda.use_db_compression

Overrides the global compression setting for Event-Driven Ansible.

Value of spec.use_db_compression

When you set a per-component parameter, it overrides the global spec.use_db_compression value for that component only.

15.2. Configure backup compression

Configure database compression for your Ansible Automation Platform backup by setting compression parameters in the AnsibleAutomationPlatformBackup custom resource.

Prerequisites

  • You have installed Ansible Automation Platform 2.5 by using the operator.
  • You have administrator access to the Red Hat OpenShift Container Platform cluster.

Procedure

  1. Create or edit an AnsibleAutomationPlatformBackup custom resource file. The following example enables compression globally but disables it for automation controller:

    apiVersion: aap.ansible.com/v1alpha1
    kind: AnsibleAutomationPlatformBackup
    metadata:
      name: aap-backup
      namespace: aap
    spec:
      deployment_name: aap
    
      # Global — applies to gateway and all child components by default
      use_db_compression: true
    
      # Per-component override (optional)
      controller:
        use_db_compression: false   # disable compression for controller only
  2. Apply the custom resource to your cluster:

    $ oc apply -f _<backup_cr_file>_.yml
  3. Monitor the backup progress:

    $ oc get ansibleautomationplatformbackup -n aap -w

Verification

  • Verify that the backup completed successfully:

    $ oc get ansibleautomationplatformbackup _<backup_name>_ -n aap -o jsonpath='{.status.conditions}'

    The output shows a Successful condition when the backup completes.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동