หน้านี้แปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

Component

core/datastore/ferretdb

A document-database proxy that speaks the MongoDB wire protocol and stores data in a PostgreSQL backend with the DocumentDB extension. It is typed as a stateful server because the endpoint it presents to consumers is a durable document database: standard database consumers bind it through their database socket exactly as they would a native datastore. The proxy process itself holds no local state — its Recipe renders a stateless workload — but the service contract it exposes is a database, so the type label reflects the consumer-facing contract rather than the internal workload form. It fronts a PostgreSQL/DocumentDB backend wired through its `backend` uses-socket: the backend host, port, user, and database arrive on the injection context and are composed into the proxy's PostgreSQL connection. Exports its host, port, and protocol to consumers via the uses topology. With `values.metrics_enabled` true each Recipe makes FerretDB's own metrics, served at /debug/metrics on its debug listener, port 8088, reachable and publishes that address as `metrics_endpoint`; false, that key is empty. That listener checks no caller and also serves /debug/pprof, with CPU profiles and execution traces on request, /debug/vars, /debug/archive and /debug/graphs. On Kubernetes the value moves it from the pod's loopback address onto every interface of the pod and names its port on the Service, newly opening it to every in-cluster caller that reaches the pod; on Docker Compose the value newly opens it to every peer on the network.

ที่มา

ทางการลงลายเซ็นด้วยตัวตนที่แค็ตตาล็อกนี้รู้จักว่าเป็นผู้เผยแพร่ทางการ
ไดเจสต์ของเนื้อหา
sha256:bd3375d60235bfff68b81e6f6bdf789dcfe3a506cf77a03a80c3aba13c12cbbf
เผยแพร่
2026-11-10T10:10:42Z
ตัวตนผู้ลงลายเซ็น
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

ลายเซ็น

  • ทางการapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:1fb1023e5afe692195099eabce8cb8fb76855155007b04488ae50867baf42322

เอกสารอ้างอิงในเวอร์ชันนี้

oci://hub.aggrega.ai/component/core/datastore/ferretdb:1.0.0

พารามิเตอร์ของนักพัฒนา

ค่าที่นักพัฒนากำหนดใน Aggregate

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
metrics_enabledbooleanfalseไม่ใช่Makes FerretDB's own metrics, in the Prometheus format at /debug/metrics on port 8088, reachable and publishes their address as `metrics_endpoint`; while false that key is empty. The port checks no caller and also serves /debug/pprof (CPU profiles and execution traces on request), /debug/vars, /debug/archive and /debug/graphs. On Kubernetes the value moves the listener from the pod's loopback address onto every interface and names its port on the Service, newly opening it to every in-cluster caller that reaches the pod; on Docker Compose the value newly opens it to every peer on the network.

การกำหนดขนาดโดยผู้ดำเนินการ

ขนาดโครงสร้างพื้นฐานที่ผู้ดำเนินการปรับแต่งตามแต่ละสภาพแวดล้อม

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
portinteger (min 1024, max 65535)27017ไม่ใช่Document-database wire port the proxy listens on. Most operators should omit this and let the Recipe assign the default (27017).
engine_versionstring2.7.0ไม่ใช่Proxy container image tag.
computeobject—ไม่ใช่—
overridesobject (open)—ไม่ใช่Provider-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

สัญญาเอาต์พุต

ค่าที่ส่วนประกอบนี้เผยแพร่ให้ผู้บริโภคผ่านโทโพโลยี uses

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
hoststring—ใช่Address a client opens its document-database connection to. On the in-cluster realizations it is the Service's DNS name.
portinteger—ใช่TCP port the proxy accepts connections on. It follows the port an operator set in the Release, so a consumer reads it rather than assuming a default.
protocolstring—ไม่ใช่Wire protocol the published address speaks — `mongodb`, so a consumer uses a MongoDB driver and never has to know a PostgreSQL backend is behind it.
metrics_endpointstring—ไม่ใช่The full address Prometheus scrapes this component's metrics at — scheme, host, port and path, `http://<host>:8088/debug/metrics`, the host being the proxy's Service name. Empty while values.metrics_enabled is false.

ซ็อกเก็ต Uses

ซ็อกเก็ตการพึ่งพาที่ส่วนประกอบนี้เชื่อมต่อผ่าน เป้าหมายของทุกการเชื่อมต่อที่เชื่อมโยงผ่านซ็อกเก็ตต้องตรงกับตัวคัดเลือกป้ายกำกับของซ็อกเก็ต และแต่ละการเชื่อมต่อมีการแนบในสล็อตที่ซ็อกเก็ตประกาศได้ ทุกการเชื่อมต่อที่ Aggregate หรือ Release เชื่อมโยงผ่านซ็อกเก็ตต้องกำหนดสล็อตที่จำเป็น

backend

ตัวคัดเลือก
component.aggrega.ai/type=stateful-server
Inject
env

สล็อตที่แต่ละการเชื่อมต่อผ่านซ็อกเก็ตนี้เติมได้

สล็อตตัวคัดเลือกจำเป็นInjectละเอียดอ่อนคำอธิบาย
credentialfeature.aggrega.ai/kind=secretไม่ใช่envใช่Optional password the proxy presents to the backend this connection reaches, shared with that backend. When attached, supplies the backend password via the credential subsystem. Unattached, compose/ferretdb and helm/ferretdb present the development literal `apppass`, which this catalog publishes, so every Release that leaves the slot unattached shares that password.

สล็อตการแนบ

จุดผูกที่มีชื่อซึ่ง Feature แนบกับส่วนประกอบนี้ ตัวคัดเลือกของสล็อตจำกัดว่า Feature ใดเติมสล็อตได้ และรายการ inject ของสล็อตระบุว่าส่งมอบเนื้อหาของ Feature ได้อย่างไร สล็อตที่จำเป็นต้องถูกผูกในทุกอินสแตนซ์ ด้วยการแนบบนอินสแตนซ์หรือที่ขอบเขตเหนือขึ้นไป และสล็อตที่ละเอียดอ่อนถูกประกาศให้จัดการข้อมูลลับ Feature แนบภายใต้ชื่อที่ไม่มีสล็อตใดประกาศได้ด้วย

ไม่มีสล็อตการแนบที่ประกาศ

รายการอนุญาต self-inject

env

ความสัมพันธ์

เส้นเชื่อมที่ระบุชนิดไปยังและมาจากเอนทิตีที่เผยแพร่อื่น การอ้างอิงที่ไม่มีเป้าหมายที่เผยแพร่จะเรนเดอร์เป็นเส้นเชื่อมที่ขาดแทนที่จะเป็นลิงก์

Uses

ใช้โดย

เอกสารอ้างอิงแนวคิดของ Component

แค็ตตาล็อก Aggrega — ดัชนีเปิดของส่วนประกอบ ฟีเจอร์ Recipes และปลั๊กอินที่เรนเดอร์สิ่งเหล่านั้น

สร้างด้วยระบบการออกแบบร่วมของ Aggrega

ความเป็นส่วนตัว