การประกอบ
หน้า
aggrega draft --example module-boundary-routingจาก
cd module-boundary-routingaggrega build --release release.yaml --auto-pullโมดูล: Aggregate ที่ถูกนำเข้าโดยอีก Aggregate
Aggregate นำaggregates: ได้ โมดูลaggregate.yaml:
spec: aggregates: metrics: type: core/thanos documents: type: core/ferretdbบล็อก exportedComponents ของcore/ferretdb ส่งproxy ของmongo ส่วนdocuments.mongo:
uses: database: main: target: documents.mongoโมดูลparameters: ของ
การวางโมดูล
Release วางaggregates: ที่release.yaml โดย
spec: boundaries: observability: directory: observability annotations: aggrega.ai/namespace: observability aggregates: metrics: components: query: infra: compute: cpu: 500m memory: 1Gi data: directory: data annotations: aggrega.ai/namespace: data aggregates: documents: {}คำ
บริการที่การบิลด์ไม่จัดเตรียม
เซิร์ฟเวอร์manifest-external.yaml ผูก core/datastore/postgres กับ helm/postgres-external ซึ่งrelease-external.yaml:
db: infra: overrides: host: postgres.data.example.netที่
ระบบย่อย: การจัดกลุ่มภายใน Aggregate เดียว
ระบบ
spec: subsystems: billing: annotations: team.aggrega.ai/owner: billing-squad aggrega.ai/namespace: billing features: metrics: type: core/prometheus-exporter components: invoice-api: type: core/compute/server payment-worker: type: core/compute/workerการinvoice-api และ payment-worker แต่ละmetrics และ{{ index .context.annotations.aggregate "team.aggrega.ai/owner" }} aggrega.ai/namespace เป็นbilling ด้วย Release กำหนดinfra ของ
การแนบที่เชื่อมต่อกับบางสิ่งของตัวเอง
การuses: ของcore/backup กับrelease-helm-velero.yaml:
spec: components: db: features: backup: type: core/backup infra: schedule: "30 2 * * *" retention_days: 14 uses: store: bucket: target: backupsการbackups เป็นuses: