<@U04S8PLJWMT> can you explain what each component...
# ask-ai
s
@kapa.ai can you explain what each component in airbyte is used for? and for production and scaling what shall i keep in mind?
k
Certainly! Here’s an overview of each Airbyte component and key considerations for production and scaling, based strictly on the provided documentation. --- ## Airbyte Components and Their Roles Airbyte is architected as a set of microservices (the platform) and independent connectors: - Config API Server (
airbyte-server
,
airbyte-server-api
)
: Acts as the main controller and graphical user interface. All operations—such as creating sources, destinations, connections, and managing configurations—are configured and invoked through this API. - Database Config & Jobs (
airbyte-db
)
: Stores all configuration data (like credentials and sync frequency) and job history. - Temporal Service (
airbyte-temporal
)
: Manages scheduling and sequencing of task queues and workflows. - Worker (
airbyte-worker
)
: Reads from the task queues and executes connection scheduling and sequencing logic, making calls to the workload API. - Workload API (
airbyte-workload-api-server
)
: Provides the HTTP interface for enqueuing workloads—the discrete pods that run connector operations. - Launcher (
airbyte-workload-launcher
)
: Consumes events from the workload API and interfaces with Kubernetes to launch workloads (pods). - Connectors: Independent Docker images that implement the logic to extract data from sources and load it into destinations, following the Airbyte Specification. - Cron (
airbyte-cron
)
: Cleans the server and sync logs (when using local logs), regularly updates connector definitions, and sweeps old workloads. - Bootloader (
airbyte-bootloader
)
: Upgrades and migrates database tables and ensures the environment is ready to work. > The above structure is consistent across Airbyte versions and applies to both standard and Kubernetes deployments. > [See: Architecture overview](https://docs.airbyte.com/platform/understanding-airbyte/high-level-view) --- ## Production and Scaling Considerations ### 1. Workloads and Scaling - The heavy lifting in Airbyte is done by workloads (pods) that execute operations like Discover, Read, and Sync. - Scaling Airbyte is primarily about ensuring your Kubernetes cluster (or infrastructure) has enough resources to schedule these job pods. - Sync jobs are the most resource-intensive, using two workers: one for reading from the source and one for writing to the destination. ### 2. Resource Planning - Memory: The Source worker is the main memory consumer, as it reads up to 10,000 records in memory. For example, a table with 0.5MB average row size would require about 5GB RAM for the Source worker. [See: What To Scale](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale) - Disk Space: - Long-running syncs can generate significant logs. - Connector images are typically ~300MB each; a deployment with many connectors can use up to 10GB disk space. - Recommended: Allocate at least 30GB disk space per node, and err on the side of over-provisioning. ### 3. Kubernetes-Specific Guidance - Ensure the cluster can schedule up to
2 x <number-of-possible-concurrent-connections>
pods at once (worst-case estimate). ### 4. Temporal DB Connections - Temporal maintains multiple idle connections (default: 20). If you increase
SQL_MAX_IDLE_CONNS
, also increase
SQL_MAX_CONNS
since the former is capped by the latter. ### 5. Typical Usage Reference - Most users have 5–20 connectors and 10–100 connections, with at most 100 concurrent jobs. Scaling issues generally arise only with over a thousand connections. --- In summary: For production, focus on memory and disk provisioning (especially for sync-heavy workloads), ensure your Kubernetes cluster can handle the required pod concurrency, and monitor Temporal DB connection settings. The control plane components are low-resource and rarely need scaling unless you have exceptionally large workloads. [Source: Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale) [Source: Architecture overview](https://docs.airbyte.com/platform/understanding-airbyte/high-level-view)