이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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:
| Parameter | Description | Default |
|---|---|---|
|
| Enables or disables database dump compression for all components globally. |
|
|
| Overrides the global compression setting for the platform gateway. |
Value of |
|
| Overrides the global compression setting for automation controller. |
Value of |
|
| Overrides the global compression setting for automation hub. |
Value of |
|
| Overrides the global compression setting for Event-Driven Ansible. |
Value of |
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
Create or edit an
AnsibleAutomationPlatformBackupcustom 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 onlyApply the custom resource to your cluster:
$ oc apply -f _<backup_cr_file>_.ymlMonitor 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
Successfulcondition when the backup completes.