<@U04S8PLJWMT> I set MAX_SYNC_WORKERS and MAX_CHEC...
# ask-ai
z
@kapa.ai I set MAX_SYNC_WORKERS and MAX_CHECK_WORKERS to 6 but my jobs are stuck on pending. What's the story?
k
If your jobs are stuck in "pending" after setting
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
to 6, there are a few common causes and troubleshooting steps based on the knowledge sources: 1. Resource Constraints: Even if you set the worker limits, your cluster or nodes may not have enough CPU or memory to schedule the required pods. Airbyte launches additional pods for each sync, and if your nodes are under-provisioned or your resource requests/limits are too high, pods can remain pending due to insufficient resources. Check your node utilization and consider scaling up or adjusting resource requests/limits in your configuration. For example, you can set job resource requests/limits in your
values.yaml
file:
Copy code
yaml    jobs:      resources:        limits:          cpu: 250m          memory: 500m        requests:          cpu: 75m          memory: 150m
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/1.6/enterprise-setup/scaling-airbyte) 2. Worker Pod Limits: The number of concurrent jobs is also limited by the number of Airbyte worker pods (
worker.replicaCount
). If you only have one worker pod, setting
MAX_SYNC_WORKERS
to 6 means a maximum of 6 concurrent syncs. If you want more concurrency, increase the number of worker replicas.
Copy code
yaml    worker:      replicaCount: 2
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/1.6/enterprise-setup/scaling-airbyte) 3. Temporal Worker Ports: Each worker pod needs open ports to communicate with job pods. If the number of available ports (set by
TEMPORAL_WORKER_PORTS
) is less than the sum of your worker limits, jobs may hang or remain pending. Make sure you have enough ports configured for your expected concurrency. For example, the default is ports 9001–9040 (40 ports), so if you want more, expand this range. [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#worker) 4. Cluster Scheduling Issues: If your Kubernetes cluster is under heavy load or has taints/affinity rules that prevent pods from being scheduled, jobs can remain pending. Check your cluster events and pod status for more details. 5. Job Resource Requests Not Respected: There have been reports that sometimes job resource requests/limits are not respected, leading to pods requesting more resources than available, causing them to stay pending. Double-check your configuration and Airbyte version for any known issues in this area [Sync jobs do not appear to respect CPU / memory requests and limits](https://github.com/airbytehq/airbyte/issues/42921). Summary: Check your cluster's available resources, the number of worker replicas, the configured port range, and your job resource requests/limits. Pending jobs are almost always a sign of resource or scheduling constraints, not just the worker limits themselves. If you continue to see issues, review your Kubernetes events and Airbyte pod logs for more specific error messages.
z
@kapa.ai How can I verify that MAX_SYNC_WORKERS and MAX_CHECK_WORKERS have been updated in the appropriate pods after setting the values and running abctl local install?
k
A message from kapa.ai
To verify that
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
have been updated in the appropriate pods after setting the values and running
abctl local install
, you should inspect the environment variables of the running Airbyte worker pods. While the knowledge sources do not provide a step-by-step verification process, they do show that these variables are set as environment variables in the worker pods via the Helm values file (e.g., using
env_vars
or
extraEnvs
in
values.yaml
) and that you can use
kubectl
to interact with your local Kubernetes cluster deployed by
abctl
 [Developing Locally](https://docs.airbyte.com/platform/1.7/contributing-to-airbyte/developing-locally#prerequisites). Here’s how you can check: 1. List the worker pods:
Copy code
sh    kubectl get pods -n airbyte-abctl
2. Pick the name of an Airbyte worker pod (e.g.,
airbyte-abctl-worker-xxxxxxx-xxxxx
).
3. Describe the pod to see its environment variables:
Copy code
sh    kubectl describe pod <worker-pod-name> -n airbyte-abctl
Look for
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
in the "Environment" section of the output. Alternatively, you can exec into the pod and print the environment variables:
Copy code
sh    kubectl exec -it <worker-pod-name> -n airbyte-abctl -- printenv | grep WORKERS
If you see your updated values for
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
, then the configuration has been applied successfully. > The knowledge sources confirm the use of these environment variables and the use of
kubectl
for inspecting pods, but do not provide a direct verification command. The above steps are based on standard Kubernetes practices as referenced in the Airbyte documentation for local development and troubleshooting [Developing Locally](https://docs.airbyte.com/platform/1.7/contributing-to-airbyte/developing-locally#prerequisites).
z
@kapa.ai These environment variables aren't listed in the worker pod.
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide explicit instructions or confirmation on how to verify that
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
are set in the worker pod after running
abctl local install
. While several sources discuss how to configure these environment variables in Helm or Docker Compose deployments, and mention that they should be set as environment variables in the worker container, there is no documentation or example output confirming their presence in the pod's environment after a local install with
abctl
 [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-airbyte#worker). If these variables are not listed in the worker pod's environment, it may indicate that the configuration method used by
abctl local install
does not propagate them as expected, or that additional steps are required which are not covered in the available documentation. If you need further assistance, you may want to consult the Airbyte community or support channels, as the knowledge sources do not contain enough information to provide a definitive answer for this scenario.
z
@kapa.ai If I kill the worker pod, will it restart again and possibly read environment variables from values.yaml?
k
A message from kapa.ai
If you kill the worker pod, Kubernetes will automatically restart it, and the new pod will be created based on the current configuration defined in your Helm values (such as
values.yaml
). This means that if you have updated environment variables like
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
in your
values.yaml
and have applied those changes (for example, by running
abctl local install
), the restarted pod should pick up the new environment variable values from the configuration. However, the knowledge sources do not explicitly confirm that
abctl local install
always propagates changes in
values.yaml
to the environment variables in the worker pod, nor do they provide a step-by-step verification for this process. If you do not see the expected environment variables after the pod restarts, it may indicate an issue with how the configuration is being applied or a limitation in the current version of
abctl
or the Helm chart being used. In summary: Killing the worker pod will cause it to restart and, in principle, it should read environment variables from the current configuration. If this is not happening, the knowledge sources do not provide enough detail to diagnose the issue further, and you may need to consult additional support resources or documentation for troubleshooting steps specific to your deployment method [Configuring Airbyte - Worker](https://docs.airbyte.com/platform/1.7/operator-guides/configuring-airbyte#worker).
z
@kapa.ai What's the command to kill the worker pod?
k
A message from kapa.ai
To kill (delete) the worker pod in your Airbyte deployment, you can use the following command:
Copy code
sh kubectl delete pod <worker-pod-name> -n airbyte-abctl
Replace
<worker-pod-name>
with the actual name of your worker pod. You can list all pods in the
airbyte-abctl
namespace to find the correct pod name:
Copy code
sh kubectl get pods -n airbyte-abctl
This approach is confirmed as standard practice for interacting with pods in an Airbyte instance installed with
abctl
 [Deploying Airbyte: Troubleshooting abctl](https://docs.airbyte.com/platform/next/deploying-airbyte/troubleshoot-deploy#faq).