<@U04S8PLJWMT> what does workload api server , wor...
# ask-ai
i
@kapa.ai what does workload api server , workload laucnher and worker do ?
k
Here’s what each Airbyte component does, based on the official documentation: Workload API Server The Workload API Server (
airbyte-workload-api-server
) is the HTTP interface for enqueuing workloads. In Airbyte, a workload is a discrete pod that runs connector operations (such as SYNC, CHECK, DISCOVER, SPEC). When a job needs to be run, it is submitted to the Workload API Server, which places the job in a queue. This decouples job scheduling from job execution, allowing for better resource management and backpressure in resource-constrained environments [Architecture overview](https://docs.airbyte.com/platform/next/understanding-airbyte/high-level-view). Workload Launcher The Workload Launcher (
airbyte-workload-launcher
) consumes events from the Workload API Server. Its main responsibility is to pick up jobs from the queue and launch the necessary resources to run the job, such as Kubernetes pods. It throttles job creation based on available resources, minimizing deadlock situations and ensuring that jobs are only started when the cluster has capacity [Workloads & Jobs](https://docs.airbyte.com/platform/next/understanding-airbyte/jobs). Worker The Worker (
airbyte-worker
) reads from the task queues managed by Temporal and executes the connection scheduling and sequencing logic. It makes calls to the Workload API to enqueue jobs for execution. Essentially, the Worker is responsible for orchestrating the flow of jobs from scheduling (via Temporal) to execution (via the Workload API and Launcher) [Architecture overview](https://docs.airbyte.com/platform/next/understanding-airbyte/high-level-view). In summary: - Workload API Server: Receives and queues jobs to be run as workloads. - Workload Launcher: Launches the actual pods to execute jobs, based on resource availability. - Worker: Orchestrates job scheduling and enqueues jobs to the Workload API Server. These components work together to ensure scalable, reliable, and efficient execution of data movement jobs in Airbyte.
i
@kapa.ai how to switch on debug logs in airbyte ?
k
A message from kapa.ai
To enable debug logs in Airbyte, you typically need to adjust the log level settings. However, the documentation strongly recommends turning off
DEBUG
logs for any non-testing use of Self-Managed Airbyte, as enabling them during at-scale syncs may overload the
server
pod and disrupt normal operation [Scaling Airbyte - DEBUG Logs](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#debug-logs). For command-line operations using
abctl
, you can use the
--verbose
flag to enable verbose/debug output for troubleshooting unexpected behavior [abctl Help and Debugging](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#help-and-debugging):
Copy code
abctl <command> --verbose
If you are developing or debugging connectors, you may also set environment variables such as
DEBUG=true
or adjust the log level in your connector's configuration, but the official documentation does not provide detailed steps for this. If you need more granular debug logging (e.g., for API calls in custom connectors), you may need to refer to connector-specific documentation or source code, as this is not fully covered in the official docs [GitHub Issue: log http calls to api](https://github.com/airbytehq/airbyte/issues/52077). Summary: - Use
--verbose
with
abctl
for debug output. - Avoid enabling
DEBUG
logs in production/self-managed environments due to performance risks. - For connector-level debug logging, further configuration may be required, but details are not fully documented in the official sources.
i
@kapa.ai how do i know if the debug mode is switched on ?
k
A message from kapa.ai
The knowledge sources do not explicitly describe a method to check if debug mode is currently enabled in Airbyte. However, you can infer that debug mode is on if you see detailed debug-level log messages (typically labeled as
DEBUG
) in your Airbyte logs. Additionally, when using
abctl
, running commands with the
--verbose
flag will enable verbose/debug output for that session, which you can confirm by the presence of more detailed output in your terminal [abctl Help and Debugging](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#help-and-debugging). If you do not see
DEBUG
log entries or verbose output, debug mode is likely not enabled. For persistent log level configuration, you would need to check the value of the
LOG_LEVEL
environment variable, but the sources do not provide a direct method for verifying its current value at runtime.
i
@kapa.ai i have set limits for my upto 4Gi but today one job ran and went over it to 6Gi
k
A message from kapa.ai
If you have set your memory limits (for example,
JOB_MAIN_CONTAINER_MEMORY_LIMIT=4Gi
) but observed a job exceeding this limit (using up to 6Gi), this is not expected behavior according to Airbyte's documentation. The memory limit should act as a hard cap, and exceeding it typically results in the container being killed by the orchestrator (e.g., Kubernetes or Docker). There are several reports from users experiencing similar issues, where Airbyte jobs ignore the configured memory limits and requests. For example, users have reported that even after setting the environment variables or updating the actor definition in the database, the job logs still show the default or previous resource settings being applied, and jobs can exceed the set limits. This has been observed both in Docker and Kubernetes deployments, and in some cases, the container is killed only when the actual system memory is exhausted, not at the configured limit. This suggests that there may be a bug or misconfiguration in how Airbyte applies these resource limits in certain versions or environments [Github Issue: Airbyte is ignoring
JOB_MAIN_CONTAINER_MEMORY_REQUEST
in .env](https://github.com/airbytehq/airbyte/issues/30814), [Forum: Default 2GB memory limit not being observed](https://discuss.airbyte.io/t/3472). What you can do: - Double-check that your configuration is being picked up by Airbyte. You can do this by looking at the job logs, which should show the resource requirements as the containers are created. If the logs do not reflect your configured limits, Airbyte may not be applying them correctly [Configuring Connector Resources - Debugging](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-connector-resources#debugging). - If you are using Kubernetes, ensure that your
values.yaml
or Helm chart is correctly setting the resource limits. - If you are using Docker, make sure the environment variables are set in the correct context and that the containers are restarted after changes. - If the problem persists, it may be a known issue with your Airbyte version, and you may want to follow or contribute to the related GitHub issues. Summary: This behavior is not expected, and if your job is exceeding the set memory limit, it is likely due to a bug or misconfiguration. Check your job logs to confirm what limits are being applied, and review the known issues for your Airbyte version. If necessary, escalate by opening or commenting on a GitHub issue with your findings.
i
@kapa.ai i am not using env parameters to set the limits, i have set the limits under global: jobs: in helm chart. i am on airbyte 1.8.3
k
A message from kapa.ai
If you have set your resource limits under
global.jobs.resources
in your Helm chart (for example, in
values.yaml
), but are observing jobs exceeding those limits on Airbyte 1.8.3, this is a known issue that has been reported by other users as well. Several GitHub issues and forum posts indicate that, in some cases, Airbyte jobs do not respect the resource requests and limits set in the Helm chart. Even when the correct values are present in the configuration, the actual pods may use different (often default) values, or the limits may be ignored entirely. This has been observed in multiple Airbyte versions, including recent ones. For example, users have reported that jobs can exceed the configured memory limits, and sometimes the only effect is that the container is killed when the node runs out of memory, rather than at the set limit. This suggests a bug or a misapplication of the configuration in certain environments or Airbyte versions [GitHub Issue: Sync jobs do not appear to respect CPU / memory requests and limits](https://github.com/airbytehq/airbyte/issues/42921), [GitHub Issue: Airbyte is ignoring
JOB_MAIN_CONTAINER_MEMORY_REQUEST
in .env](https://github.com/airbytehq/airbyte/issues/30814), [Forum: Default 2GB memory limit not being observed](https://discuss.airbyte.io/t/3472). What you should do: - Check the job logs in the Airbyte UI to see what resource requirements are actually being applied when the containers are created. The logs will show the detected configuration for each job. If the logs do not reflect your Helm chart settings, Airbyte is not applying them correctly [Configuring Connector Resources - Debugging](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-connector-resources#debugging). - If you recently changed your Helm values, make sure you have restarted the
airbyte-workload-launcher
deployment. Changes to the configMap are not picked up by already running pods, and a manual restart is required for the new settings to take effect [GitHub Issue: Node selector and tolerations for job](https://github.com/airbytehq/airbyte/issues/10378). - If the problem persists, it may be a bug in Airbyte 1.8.3. You may want to follow or comment on the related GitHub issues with your findings. Summary: Setting limits under
global.jobs.resources
in the Helm chart should work, but there are known issues where these limits are not respected. Always check the job logs to confirm what is being applied, and restart the workload launcher after changes. If the issue continues, it is likely a bug and should be reported or tracked via GitHub.