이 페이지에서는 RPM 오케스트레이터를 사용하여 AlloyDB Omni를 배포하고 관리하기 위한 다양한 YAML 구성 예시를 제공합니다.
DBCluster 구성
최소 DBCluster
독립형 DBCluster를 가져오는 기본 구성입니다.
최소 DBCluster YAML 구성 보기
DBCluster: metadata: name: alloydb-prod spec: databaseVersion: 18.1.0 primarySpec: adminUser: passwordRef: name: db-pw-alloydb-prod resources: disks: - name: DataDisk path: /mnt/disks/pgsql
전체 DBCluster
모든 옵션을 보여주는 포괄적인 DBCluster 구성입니다.
전체 DBCluster YAML 구성 보기
DBCluster: metadata: name: alloydb-prod spec: databaseVersion: 18.1.0 loadBalancerPort: 5433 readOnlyPort: 5434 mode: "" availability: numberOfStandbys: 2 enableAutoFailover: true enableAutoHeal: true enableStandbyAsReadReplica: true autoFailoverTriggerThreshold: 2 autoHealTriggerThreshold: 2 healthcheckPeriodSeconds: 10 primarySpec: adminUser: passwordRef: name: db-pw-alloydb-prod port: 5432 monitorPort: 9187 parameters: max_connections: "100" max_wal_size: "2GB" max_worker_processes: "32" log_connections: "on" log_disconnections: "on" log_hostname: "on" log_statement: "none" resources: cpu: 16 memory: 32Gi limits: memory: 64Gi disks: - name: DataDisk path: /mnt/disks/pgsql - name: ObsDisk path: /obs dbLoadBalancerOptions: onprem: loadBalancerIP: 10.1.0.95 loadBalancerType: "internal" loadBalancerInterface: "eth0" features: columnarSpillToDisk: cacheSize: "50Gi" localVolume: path: "/mnt/disks/ssd1" ultraFastCache: cacheSize: "100Gi" localVolume: path: "/mnt/disks/ssd2" googleMLExtension: enabled: true config: vertexAIKeyRef: "vertex-ai-key" vertexAIRegion: "us-central1"
보안 비밀 구성
비밀번호가 포함된 예:
보안 비밀 (비밀번호) YAML 구성 보기
Secret: metadata: name: db-pw-sample-st-1 spec: type: Opaque data: sample-st-1: cG9zdGdyZXM=
인증서가 포함된 예:
보안 비밀 (인증서) YAML 구성 보기
Secret: metadata: name: dbs-alloydbomni-cluster spec: type: Opaque data: ca.crt: <base64_ca_certificate> tls.crt: <base64_tls_certificate> tls.key: <base64_tls_private_key>
Gemini Enterprise Agent Platform 키 예시:
보안 비밀 (Vertex AI) YAML 구성 보기
Secret: metadata: name: vertex-ai-key spec: type: Opaque data: private-key.json: <base64_encoded_private_key>
PgBouncer 구성
PgBouncer YAML 구성 보기
PgBouncer: metadata: name: sample-pgbouncer spec: accessMode: "rw" allowSuperUserAccess: true dbClusterRef: dbcluster-sample port: 6432
예약된 백업 계획
전체 백업 및 증분 백업을 예약합니다.
예약된 백업 계획 YAML 구성 보기
BackupPlan: metadata: name: sample-backupplan spec: dbclusterRef: sample-dbc backupRetainDays: 14 paused: false backupSchedules: # Full backup at 00:00 on every Sunday. full: "0 0 * * 0" # Incremental backup at 21:00 every day. incremental: "0 21 * * *" backupLocation: type: GCS gcsOptions: bucket: sample-backup-bucket key: /backups secretRef: name: gcs-access-secret
Cloud Storage에 백업
Cloud Storage 버킷 내에 백업을 저장합니다.
Cloud Storage에 백업 YAML 구성 보기
BackupPlan: metadata: name: sample-backupplan-gcs spec: dbclusterRef: sample-dbc backupRetainDays: 14 paused: false backupSchedules: # Full backup at 00:00 every Sunday. full: "0 0 * * 0" # Incremental backup at every day at 21:00. incremental: "0 21 * * *" backupLocation: type: GCS gcsOptions: bucket: sample-backup-bucket key: /backups secretRef: name: gcs-access-secret
Amazon S3에 백업
Amazon S3 호환 버킷 내에 백업을 저장합니다.
Amazon S3에 백업 YAML 구성 보기
BackupPlan: metadata: name: sample-backupplan-s3 spec: dbclusterRef: sample-dbc backupRetainDays: 14 paused: false backupSchedules: # Full backup at 00:00 on every Sunday. full: "0 0 * * 0" # Incremental backup at 21:00 every day. incremental: "0 21 * * *" backupLocation: type: S3 s3Options: bucket: sample-backup-bucket-s3 key: /backups region: "us-east-1" endpoint: "https://s3.storage.com" secretRef: name: s3-access-secret
주문형 수동 백업
단일 수동 백업을 만듭니다.
주문형 수동 백업 YAML 구성 보기
Backup: metadata: name: sample-backup spec: dbclusterRef: sample-dbc backupPlanRef: sample-backupplan manual: true physicalBackupSpec: backupType: full
백업에서 복원
저장된 백업에서 클러스터를 복구하거나 만듭니다.
백업에서 복원 YAML 구성 보기
Restore: metadata: name: sample-restore spec: sourceDBCluster: sample-dbc backup: sample-backup
특정 시점으로 복원
클러스터를 과거의 특정 타임스탬프로 복원합니다.
특정 시점으로 복원 YAML 구성 보기
Restore: metadata: name: sample-restore-pitr spec: sourceDBCluster: sample-dbc pointInTime: "2026-08-12T00:00:00Z"
전환 구성
전환 구성 예시
전환 YAML 구성 보기
Switchover: metadata: name: switchover-alloydb-prod-12345 spec: dbclusterRef: "alloydb-prod"
장애 조치 구성
장애 조치 구성 예시
장애 조치 YAML 구성 보기
Failover: metadata: name: failover-alloydb-prod-abcde spec: dbclusterRef: "alloydb-prod"
DBInstance 구성
DBInstance (ReadPool) 구성 예시
DBInstance (ReadPool) YAML 구성 보기
DBInstance: metadata: name: sample-readpool spec: instanceType: ReadPool dbcParent: name: alloydb-prod nodeCount: 2