ข้ามไปยังเนื้อหา
AggregaAggregaAggregaAggrega
เลือกภาษา: ไทย
หน้านี้ถูกแปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

ที่จัดเก็บข้อมูลที่สำรองบนทุกเป้าหมายด้วยการแนบ core/backup เพียงรายการเดียว

ฐานข้อมูล PostgreSQL ที่สำรองบน Kubernetes ผ่าน Velero และผ่าน CloudNativePG และบน AWS ผ่านการสำรองอัตโนมัติของ Amazon RDS เอง บน Terraform และบน CloudFormation รวมถึงผ่าน AWS Backup จากการแนบ core/backup เพียงรายการเดียวที่ผู้ดำเนินการเขียนใน Release แต่ละรายการ พร้อมการปฏิเสธบนเป้าหมายที่ไม่มีผลิตภัณฑ์สำรองข้อมูล

core/backup ระบุว่าที่จัดเก็บข้อมูลถูกสำรองตามกำหนดเวลา และการสำรองแต่ละครั้งถูกเก็บไว้เป็นจำนวนวัน โดยไม่ระบุว่าทำอย่างไร Manifest ของแต่ละเป้าหมายผูก FeatureRecipe ที่ทำให้เป็นรูปธรรมบนเป้าหมายนั้น และแต่ละรายการเขียนการสำรองในคำศัพท์ของผลิตภัณฑ์ของตัวเอง ได้แก่ตารางเวลาของ Velero การสำรองตามกำหนดของ CloudNativePG การตั้งค่าของอินสแตนซ์ RDS และแผนของ AWS Backup เป้าหมายที่ไม่มีผลิตภัณฑ์ที่ทำให้เป็นรูปธรรมได้จะปฏิเสธการแนบโดยระบุชื่อ การบิลด์จึงหยุดแทนที่จะปรับใช้ที่จัดเก็บข้อมูลโดยไม่มีการสำรองที่เขียนไว้สำหรับที่จัดเก็บข้อมูลนั้น

พื้นที่ทำงานนี้บิลด์ Aggregate หนึ่งรายการผ่าน Releases หกรายการ แต่ละรายการแนบการสำรองเดียวกัน คือทุกวันเวลา 02:30 และเก็บการสำรองแต่ละครั้งไว้ 14 วัน หน้านี้แสดงสิ่งที่แต่ละเป้าหมายเรนเดอร์สำหรับการสำรองนั้นใน Releases ห้ารายการที่เสร็จสมบูรณ์ และอ้างข้อความที่รายการที่หกซึ่งคาดว่าจะหยุดพิมพ์ออกมา

สิ่งที่ตัวอย่างนี้บิลด์

อินสแตนซ์Component ของแค็ตตาล็อกรันที่ใด
dbcore/datastore/postgresRelease ทุกรายการ
backupscore/storage/s3-object-storeReleases ของ Kubernetes สองรายการ คือบัคเก็ตที่การสำรองถูกส่งไป
velerocore/storage/veleroRelease ของ Velero
barman-cloudcore/storage/barman-cloud-pluginRelease ของ CloudNativePG

Aggregate ประกาศฐานข้อมูลและสิ่งที่การสำรองต้องใช้บน Kubernetes ได้แก่บัคเก็ตและคอนโทรลเลอร์สำรองสองตัว คอนโทรลเลอร์สำรองถูกติดตั้งหนึ่งครั้งต่อคลัสเตอร์ ไม่ใช่พร้อมกับฐานข้อมูล จึงเป็นส่วนประกอบของตัวเอง บน AWS การสำรองอยู่ในที่จัดเก็บของบริการที่มีการจัดการเอง และไม่ต้องการทั้งสามรายการนั้น พารามิเตอร์ backup_controller ตัวเดียวสลับรายการเหล่านั้นผ่านตัวสลับ active: ของแต่ละส่วนประกอบ:

aggregate.yaml
spec:
parameters:
[… omitted: the comment above the parameter]
backup_controller:
type: string
default: none
[… omitted: the parameter's description]
components:
[… omitted: the comment above each component]
db:
type: core/datastore/postgres
backups:
type: core/storage/s3-object-store
active: '{{ ne .parameters.backup_controller "none" }}'
values:
bucket: db-backups
velero:
type: core/storage/velero
active: '{{ eq .parameters.backup_controller "velero" }}'
barman-cloud:
type: core/storage/barman-cloud-plugin
active: '{{ eq .parameters.backup_controller "cloudnative-pg" }}'

ส่วนประกอบที่ตัวสลับเป็น false จะถูกลบออกก่อนที่จะบิลด์สิ่งใด Releases ของ AWS และ Docker Compose ซึ่งปล่อยพารามิเตอร์ไว้ที่ none จึงบิลด์ฐานข้อมูลเพียงอย่างเดียว

การแนบ

นักพัฒนาไม่เขียนสิ่งใดสำหรับการสำรอง db ไม่มีการแนบใน Aggregate ผู้ดำเนินการแนบ core/backup ใน Release แต่ละรายการ ใต้ features ของส่วนประกอบนั้น และระบุที่นั่นว่าการสำรองรันเมื่อใดและเก็บแต่ละครั้งไว้นานเท่าใด บน Kubernetes การแนบยังระบุด้วยว่าการสำรองไปที่ใดผ่านการเชื่อมต่อ store ไปยังบัคเก็ต:

release-helm-velero.yaml
components:
db:
annotations:
aggrega.ai/namespace: orders
[… omitted: the comment above the attachment]
features:
backup:
type: core/backup
infra:
schedule: "30 2 * * *"
retention_days: 14
uses:
store:
bucket:
target: backups

Releases ของ AWS เขียนการแนบเดียวกันโดยไม่มีการเชื่อมต่อ store เพราะ RDS และ AWS Backup เก็บการสำรองไว้ในที่จัดเก็บของตัวเอง และการทำให้เป็นรูปธรรมบนเป้าหมายนั้นปฏิเสธการเชื่อมต่อไปยังบัคเก็ตที่ไม่มีสิ่งใดเขียนลงไป Release ของ AWS Backup เพิ่ม infra.role_arn ซึ่งเป็นบทบาท IAM ที่ AWS Backup ใช้รันการสำรองแต่ละครั้ง

Releases หกรายการ

ReleaseManifestcore/backup ทำให้เป็นรูปธรรมโดยการบิลด์
release-helm-velero.yamlmanifest-helm-velero.yamlhelm/backup-veleroเสร็จสมบูรณ์
release-helm-cloudnative-pg.yamlmanifest-helm-cloudnative-pg.yamlhelm/backup-cloudnative-pgเสร็จสมบูรณ์
release-terraform.yamlmanifest-terraform.yamlterraform/backup-nativeเสร็จสมบูรณ์
release-cloudformation.yamlmanifest-cloudformation.yamlcloudformation/backup-nativeเสร็จสมบูรณ์
release-terraform-aws-backup.yamlmanifest-terraform-aws-backup.yamlterraform/backup-aws-backupเสร็จสมบูรณ์
release-compose.yamlmanifest-compose.yamlไม่ส่งอะไรหยุด

Manifest เป็นตัวตัดสินว่าผลิตภัณฑ์ใดสำรองฐานข้อมูล Manifests ของ Kubernetes สองรายการรันฐานข้อมูลสองแบบ คือ helm/postgres ซึ่งเป็น StatefulSet สำหรับ Velero และ helm/postgres-cloudnative-pg ซึ่งเป็น CloudNativePG Cluster สำหรับปลั๊กอิน และผูกการทำให้เป็นรูปธรรมของการสำรองสำหรับแต่ละแบบ manifest-terraform.yaml และ manifest-terraform-aws-backup.yaml แมปฐานข้อมูลไปยัง Recipe เดียวกัน และต่างกันที่ FeatureRecipe ที่ผูกกับ core/backup ส่วน Releases ที่บิลด์จากทั้งสองต่างกัน นอกจาก Manifest ที่แต่ละรายการระบุแล้ว ที่บทบาทเพียงอย่างเดียว

Releases ของ Kubernetes ยังแนบคู่คีย์ของบัคเก็ตเอง และไฟล์ข้อมูลรับรองที่ Velero ใช้ลงลายเซ็นคำขอ เป็นการแนบ core/referenced-secret ที่ระบุ Secrets ซึ่งคลัสเตอร์มีอยู่แล้ว จึงไม่มีคีย์ใดถูกเขียนลงในไฟล์ที่เรนเดอร์ ค่าเฉพาะบัญชีทุกค่าใน Releases ของ AWS เป็นตัวยึดตำแหน่ง

ร่างตัวอย่าง

คุณบิลด์ตัวอย่างนี้ได้ด้วยคำสั่งด้านล่าง หรือ ให้ผู้ช่วย AI บิลด์ให้คุณ

เขียนตัวอย่างลงในโฟลเดอร์ใหม่ที่ตั้งชื่อตามตัวอย่าง:

Terminal window
aggrega draft --example datastore-backup

จากนั้นจะพิมพ์คำสั่งที่ต้องรันถัดไป คำสั่งแรกเปลี่ยนเข้าไปในโฟลเดอร์ใหม่:

Terminal window
cd datastore-backup

บิลด์

พื้นที่ทำงานอ่านแค็ตตาล็อกไลบรารีมาตรฐานจากรีจิสทรี hub ที่ .aggrega-config.yaml ระบุ Velero และปลั๊กอิน Barman Cloud ถูกติดตั้งผ่าน chart ของโปรเจกต์ของตัวเอง Releases ของ Kubernetes สองรายการจึงต้องให้ที่เก็บ chart ของโปรเจกต์เหล่านั้นเข้าถึงได้จากการบิลด์ ส่วน Release อื่นทุกรายการเรนเดอร์จากแค็ตตาล็อกเพียงอย่างเดียว

Terminal window
aggrega build --release release-helm-velero.yaml --auto-pull # one Release

ในสำเนาที่เช็กเอาต์ของที่เก็บเอกสารประกอบ ซึ่งมีตัวช่วยบิลด์ที่ใช้ร่วมกันซึ่งสำเนาที่เขียนโดย aggrega draft --example ไม่มี ./check.sh บิลด์ Releases ทั้งหกรายการและตรวจสอบผลลัพธ์ของแต่ละรายการ สคริปต์พิมพ์หนึ่งบรรทัดต่อ Release และออกด้วยรหัสการออก 0 เฉพาะเมื่อทุกรายการจบตามที่หน้านี้อธิบาย:

RELEASE EXIT EXPECTED VERDICT
----------------------------------------------------------------------------------------------------
release-helm-velero.yaml 0 complete OK: completed, the backup the README shows
release-helm-cloudnative-pg.yaml 0 complete OK: completed, the backup the README shows
release-terraform.yaml 0 complete OK: completed, the backup the README shows
release-cloudformation.yaml 0 complete OK: completed, the backup the README shows
release-terraform-aws-backup.yaml 0 complete OK: completed, the backup the README shows
release-compose.yaml 1 halt OK: halted with the expected refusal
check: every build ended as expected.

กับผู้ช่วย AI

ผู้ช่วย AI ที่ ตั้งค่าด้วยเครื่องมือของ Aggrega ทำสิ่งเดียวกันได้ โดยวางพรอมต์นี้ลงไป

ใช้เฉพาะเครื่องมือของ Aggrega และอย่าสร้างโฟลเดอร์เอง หากโฟลเดอร์พื้นที่ทำงานยังไม่มีโฟลเดอร์ `datastore-backup` เรียกเครื่องมือ `draft` หนึ่งครั้งโดยตั้ง `example` เป็น `datastore-backup` และไม่ระบุ `dir` เครื่องมือจะเขียนตัวอย่างลงในโฟลเดอร์ `datastore-backup` ใหม่ จากนั้นเรียกเครื่องมือ `build` โดยตั้ง `workspace_root` เป็น `datastore-backup` ตั้ง `release` เป็น `release-helm-velero.yaml` ตั้ง `auto_pull` เป็น true และตั้ง `write` เป็น true บอกฉันว่าการบิลด์เขียนไฟล์ใดบ้าง ไฟล์เหล่านั้นอยู่ใต้ `datastore-backup/dist/`

Kubernetes กับ Velero

release-helm-velero.yaml เขียน StatefulSet และ Services ของฐานข้อมูล ของบัคเก็ต ออบเจ็กต์ที่ chart ของ Velero เองเรนเดอร์ และไฟล์หนึ่งไฟล์สำหรับการแนบ ซึ่งมีตำแหน่งจัดเก็บของ Velero และตารางเวลา:

dist/helm/db--backup--backup.yaml
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
[… omitted: the labels and annotations the build writes on every resource]
name: "orders-db-backup"
namespace: velero
spec:
provider: velero.io/aws
objectStorage:
bucket: "db-backups"
prefix: "orders-db-backup"
config:
region: "us-east-1"
s3Url: "http://backups-default.orders:8333"
s3ForcePathStyle: "true"
---
apiVersion: velero.io/v1
kind: Schedule
metadata:
[… omitted: the labels and annotations, as on the storage location]
name: "orders-db-backup"
namespace: velero
spec:
schedule: "30 2 * * *"
template:
includedNamespaces:
- "orders"
orLabelSelectors:
- matchLabels:
"app": "db"
storageLocation: "orders-db-backup"
ttl: "336h0m0s"
snapshotVolumes: false
defaultVolumesToFsBackup: true

ทั้งสองอยู่ในเนมสเปซ velero ซึ่งเป็นเนมสเปซเดียวที่ Velero อ่านตารางเวลาจาก และตั้งชื่อตามเนมสเปซของฐานข้อมูล ชื่อของฐานข้อมูล และชื่อของการแนบ เพราะ Release ทุกรายการบนคลัสเตอร์เขียนลงในเนมสเปซเดียวนั้น ตารางเวลาเลือก pod ของฐานข้อมูลด้วยป้ายกำกับของ StatefulSet ที่ฐานข้อมูลเรนเดอร์ ในเนมสเปซที่ฐานข้อมูลถูกวางไว้ และเอเจนต์ของโหนด Velero คัดลอกไฟล์ของวอลุ่มของ pod เหล่านั้นลงในบัคเก็ต ที่อยู่ของบัคเก็ตคือที่อยู่ที่ส่วนประกอบ backups เผยแพร่ โดยชื่อ Service ของส่วนประกอบนั้นระบุเนมสเปซที่รันอยู่ เพราะ Velero รันในอีกเนมสเปซหนึ่ง และภูมิภาคก็เป็นของบัคเก็ตเช่นกัน SeaweedFS ซึ่งรันบัคเก็ตนี้ที่นี่ไม่อ่านภูมิภาคใดเลยและเผยแพร่ us-east-1 14 วันคือ time to live ของ Velero ในหน่วยชั่วโมง

Kubernetes กับ CloudNativePG

release-helm-cloudnative-pg.yaml เขียนฐานข้อมูลเป็น CloudNativePG Cluster บัคเก็ต ออบเจ็กต์ที่ chart ของปลั๊กอินเรนเดอร์ และไฟล์ของการแนบ ซึ่งมี object store ของปลั๊กอินและการสำรองตามกำหนด ไว้ข้าง Cluster ในเนมสเปซของตัวเอง:

dist/helm/db--backup--backup.yaml
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
[… omitted: the labels and annotations the build writes on every resource]
name: "db-backup"
namespace: "orders"
spec:
configuration:
destinationPath: "s3://db-backups/orders/db-backup"
endpointURL: "http://backups-default.orders:8333"
s3Credentials:
accessKeyId:
name: "db-backup"
key: "ACCESS_KEY_ID"
secretAccessKey:
name: "db-backup"
key: "ACCESS_SECRET_KEY"
retentionPolicy: "14d"
instanceSidecarConfiguration:
env:
- name: "AWS_DEFAULT_REGION"
value: "us-east-1"
---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
[… omitted: the labels and annotations, as on the object store]
name: "db-backup"
namespace: "orders"
spec:
schedule: "0 30 2 * * *"
cluster:
name: "db"
method: "plugin"
pluginConfiguration:
name: "barman-cloud.cloudnative-pg.io"

ตารางเวลาของ CloudNativePG มีฟิลด์หกฟิลด์ โดยฟิลด์แรกเป็นวินาที 30 2 * * * ของการแนบจึงถูกเขียนโดยมี 0 นำหน้า ปลั๊กอินลงลายเซ็นคำขอด้วยคู่คีย์ใน Secret ที่ object store ระบุ ซึ่งในที่นี้คือ db-backup ตั้งชื่อตาม object store เอง เพราะการแนบไม่ได้ตั้ง infra.credentials_secret

Recipe ของฐานข้อมูลเองก็อ่านการแนบเช่นกัน และระบุปลั๊กอินเป็นตัวเก็บถาวร write-ahead log ของ Cluster:

dist/helm/db/cluster.yaml
[… omitted: apiVersion, kind and metadata]
spec:
[… omitted: the instance count, the image, the storage and the resources]
plugins:
- name: "barman-cloud.cloudnative-pg.io"
isWALArchiver: true
parameters:
barmanObjectName: "db-backup"
[… omitted: the bootstrap settings]

write-ahead log จึงถูกเก็บถาวรลงในบัคเก็ตอย่างต่อเนื่องระหว่างการสำรองฐานรายวัน และการกู้คืนเข้าถึงได้ทุกช่วงเวลาใน 14 วัน นั่นคือการกู้คืนแบบ point-in-time ของ CloudNativePG ซึ่งการทำให้เป็นรูปธรรมนี้เปิดไว้

Terraform

release-terraform.yaml เขียนโมดูลของฐานข้อมูลและไม่เขียนสิ่งอื่น การทำให้การแนบเป็นจริง terraform/backup-native ไม่เรนเดอร์ไฟล์ใดเลย การสำรองเป็นการตั้งค่าของอินสแตนซ์ RDS Recipe ของฐานข้อมูลจึงอ่านการแนบและเขียนไว้ในที่ที่อินสแตนซ์ถูกเขียน:

dist/terraform/modules/db/main.tf
[… omitted: the provenance comment, the provider requirement, and the instance's engine, compute, storage, database and HA arguments]
## ── Backup ───────────────────────────────────────────────
backup_retention_period = 14
backup_window = "02:30-03:00"
[… omitted: the subnet group and security groups, and the address output]

RDS รับเวลาเริ่มต้นรายวันหนึ่งค่าแทนนิพจน์ cron ดังนั้น 30 2 * * * จึงกลายเป็นช่วงเวลาสำรองที่เปิดเวลา 02:30 UTC และยาว 30 นาที ซึ่งสั้นที่สุดที่ RDS รับ

CloudFormation

release-cloudformation.yaml เขียนเทมเพลตสแตกหนึ่งไฟล์ที่มีอินสแตนซ์ โดยมีการตั้งค่าสองรายการเดียวกันภายใต้ชื่อคุณสมบัติของ CloudFormation:

dist/cloudformation/cloudformation-stack.json
[… omitted: the template's format version, the outputs carrying what the database publishes, and the opening of its resources]
"Db": {
[… omitted: the deletion policy and the provenance metadata]
"Properties": {
"AllocatedStorage": 10,
"BackupRetentionPeriod": 14,
"DBInstanceClass": "db.t3.small",
[… omitted: the database name, the subnet group, the engine and the credentials settings]
"MultiAZ": false,
"Port": 5432,
"PreferredBackupWindow": "02:30-03:00",
[… omitted: the storage type and the security groups]
},
"Type": "AWS::RDS::DBInstance"
}
[… omitted: the closing of the resources and of the template]

AWS Backup

release-terraform-aws-backup.yaml บิลด์จาก Manifest ที่ผูก terraform/backup-aws-backup แทน การทำให้เป็นรูปธรรมนี้เขียนโมดูลของการแนบเองไว้ข้างโมดูลของฐานข้อมูล ซึ่งมี backup vault แผน และการเลือกที่ระบุอินสแตนซ์:

dist/terraform/modules/db--backup/backup.tf
[… omitted: the provenance comment, the provider requirement, and the partition, Region and account lookups]
resource "aws_backup_vault" "backup" {
name = "db-backup"
}
resource "aws_backup_plan" "backup" {
name = "db-backup"
rule {
rule_name = "db-backup"
target_vault_name = aws_backup_vault.backup.name
schedule = "cron(30 2 * * ? *)"
start_window = 60
lifecycle {
delete_after = 14
}
}
}
resource "aws_backup_selection" "backup" {
name = "db-backup"
plan_id = aws_backup_plan.backup.id
iam_role_arn = "arn:aws:iam::123456789012:role/example-backup"
resources = [
"arn:${data.aws_partition.current.partition}:rds:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:db:db",
]
}

ตารางเวลาเขียนในรูปแบบ cron ของ AWS เองและอ่านเป็น UTC และการสำรองที่ไม่เริ่มภายในหนึ่งชั่วโมงนับจากเวลาของตนจะไม่ถูกเริ่ม ARN ของอินสแตนซ์เป็นนิพจน์ Terraform ที่ประกอบจากสิ่งที่ผู้ให้บริการ AWS กำหนดค่าไว้ขณะรัน plan และชื่อของอินสแตนซ์ ส่วนบทบาทคือบทบาทที่ Release ระบุ ส่งต่อตามที่เขียนไว้

อินสแตนซ์ยังเก็บการสำรองอัตโนมัติของตัวเองไว้ข้างการสำรองของ AWS Backup เช่นเดียวกับที่ทำเมื่อไม่มีการแนบ คือ 7 วัน ในช่วงเวลาที่ RDS เลือก เพราะตารางเวลาของการแนบเป็นของ AWS Backup ไม่ใช่ของอินสแตนซ์:

dist/terraform/modules/db/main.tf
[… omitted: the provenance comment, the provider requirement, and the instance's engine, compute, storage, database and HA arguments]
## ── Backup ───────────────────────────────────────────────
backup_retention_period = 7
[… omitted: the subnet group and security groups, and the address output]

infra.keep_automated_backups: false บนการแนบจะปิดการสำรองเหล่านั้นและเหลือการสำรองของ AWS Backup เป็นการสำรองเพียงอย่างเดียวของอินสแตนซ์

สิ่งที่การบิลด์ไม่ทำ

การบิลด์เขียนไฟล์แล้วหยุด ไม่รันการสำรองเลย และไม่เข้าถึงคลัสเตอร์ บัคเก็ต หรือ AWS API ใดเลย ไม่หาค่า ARN บัญชี หรือ Region ใดเลย บน AWS แต่ละรายการเป็นนิพจน์หรือค่าที่ Release เขียนไว้ ซึ่ง Terraform, CloudFormation หรือ AWS อ่านเมื่อมีการนำไฟล์ไปใช้ และไม่ตรวจสอบสิ่งใดในคลัสเตอร์เช่นกัน:

  • ตารางเวลาของ Velero รันเฉพาะที่ที่ Velero ถูกปรับใช้ และการสำรองของปลั๊กอินรันเฉพาะที่ที่ปลั๊กอิน Operator ของ CloudNativePG (เวอร์ชัน 1.26 ขึ้นไป) และ cert-manager รันอยู่ พื้นที่ทำงานนี้ปรับใช้ Velero และปลั๊กอิน ส่วน Operator และ cert-manager สันนิษฐานว่ามีอยู่แล้ว
  • Secrets ที่ Releases ของ Kubernetes ระบุเป็นสิ่งที่คลัสเตอร์ต้องเก็บไว้เอง ในเนมสเปซที่แต่ละรายการถูกอ่าน ได้แก่ backup-store-access-key-id และ backup-store-secret-access-key ข้างบัคเก็ต velero-cloud-credentials ใน velero ซึ่งเก็บไฟล์ข้อมูลรับรองที่ใช้ร่วมกันของ AWS และ db-backup ข้างฐานข้อมูล ซึ่งเก็บคู่คีย์ภายใต้ ACCESS_KEY_ID และ ACCESS_SECRET_KEY การบิลด์ไม่เรนเดอร์รายการใดเลย

Release ที่หยุด

release-compose.yaml แนบการสำรองเดียวกันกับฐานข้อมูลบน Docker Compose ไม่มี FeatureRecipe ใดทำให้ core/backup เป็นจริงบนเป้าหมายนั้น manifest-compose.yaml จึงไม่ผูกรายการใดเลย และ aggrega build --release release-compose.yaml --auto-pull หยุดโดยระบุการแนบ แทนที่จะปรับใช้ฐานข้อมูลที่ไม่มีการสำรอง:

[… omitted: what resolving the lockfile prints, the same halt among it]
[OPS_ERROR E0099]
recipe resolution
caused by (1):
no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type: feature "backup" (type "core/backup"); no feature recipe the lockfile pins implements core/backup:1.0.0 for capability "compose", the capability its component's Recipe binds to; with no catalog directory, the feature recipes searched are only those the lockfile pins, not a registry's; pin one a registry publishes in the Manifest, where one for another capability renders as its own output beside the component's, or write one for "compose", then map the type to it

พื้นที่ทำงานไม่ระบุไดเรกทอรีแค็ตตาล็อกใดเลย การบิลด์จึงมีเพียง FeatureRecipes ที่ไฟล์ล็อกปักหมุดไว้ให้ค้นหา และ Manifest ที่ไม่ผูกรายการใดสำหรับ core/backup ก็ไม่ปักหมุดรายการใด ข้อความจึงบอกเช่นนั้น แทนที่จะอ้างว่า hub ไม่มีรายการใดเลย เมื่อระบุสำเนาที่เช็กเอาต์ของแค็ตตาล็อกไลบรารีมาตรฐานเป็นไดเรกทอรีแค็ตตาล็อก การหยุดแบบเดียวกันจะบอกว่าไม่มี FeatureRecipe ใดในแค็ตตาล็อกที่อิมพลีเมนต์ core/backup:1.0.0 สำหรับ compose และระบุรายการสิบรายการที่อิมพลีเมนต์สำหรับเป้าหมายอื่น ได้แก่ cloudformation/backup-aws-backup, cloudformation/backup-native, helm/backup-cloudnative-pg, helm/backup-k8up, helm/backup-kasten, helm/backup-kubestash, helm/backup-mariadb-operator, helm/backup-velero, terraform/backup-aws-backup และ terraform/backup-native

แค็ตตาล็อกไลบรารีมาตรฐานไม่มี FeatureRecipe สำหรับ core/backup บนเป้าหมายนี้ แต่ละรายการเหล่านั้นผูกกับเป้าหมายอื่น เมื่อปักหมุดที่นี่จึงเรนเดอร์เป็นเอาต์พุตของตัวเองข้างไฟล์ Compose สำหรับเป้าหมายที่ Release นี้ไม่ได้ปรับใช้ไปยัง ทางไปต่อมีสองทาง คือลบการแนบออกจาก Release และปรับใช้ฐานข้อมูลบนเป้าหมายนั้นโดยไม่มีการสำรอง หรือปรับใช้ผ่าน Manifest สำหรับเป้าหมายที่มีผลิตภัณฑ์สำรองข้อมูล เช่นเดียวกับ Releases อีกห้ารายการ