<@U04S8PLJWMT> type warning :: reason : failed sch...
# ask-ai
s
@kapa.ai type warning :: reason : failed scheduling :: from default scheduler : :m essage :my error message is like this 0/1 nodes are available :1 insufficient cpu. Preemption: 0/1 nodes are available :1 No preemption victims found for incoming pod.
k
The error message
0/1 nodes are available: 1 insufficient cpu. Preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.
indicates that your Kubernetes cluster does not have enough available CPU resources to schedule the Airbyte pod. This is a common issue when the resource requests for a pod (as defined in your Airbyte Helm
values.yaml
under
jobs.resources.requests.cpu
) exceed the available CPU on your nodes. How to resolve: 1. Reduce CPU Requests: Lower the CPU requests for your Airbyte jobs in your
values.yaml
file. For example:
Copy code
yaml    global:      jobs:        resources:          requests:            cpu: 75m            memory: 150Mi          limits:            cpu: 250m            memory: 500Mi
This will make it easier for the scheduler to find a node with enough available CPU to run your pod. Adjust these values based on your workload and monitoring data. [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte) 2. Add More Nodes: If reducing requests is not an option (because your jobs need the resources), you need to scale your cluster by adding more nodes or increasing the size of your existing nodes to provide more CPU resources. 3. Check Node Utilization: Use your infrastructure monitoring tool to check current CPU usage and requests on your nodes. If requested CPU is high but used CPU is low, you may be able to safely reduce requests. 4. Concurrent Syncs: If you are running many syncs at once, each sync requires additional pods, which increases resource demand. You can limit the number of concurrent syncs by setting
MAX_SYNC_WORKERS
and
MAX_CHECK_WORKERS
in your worker configuration:
Copy code
yaml    worker:      extraEnv:        - name: MAX_SYNC_WORKERS          value: "5"        - name: MAX_CHECK_WORKERS          value: "5"
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte) Summary: This is a resource scheduling issue in Kubernetes, not specific to Airbyte, but you can address it by tuning your Airbyte job resource requests/limits or by scaling your cluster to provide more CPU resources. If you continue to see jobs stuck in pending state due to insufficient CPU, review your
values.yaml
and cluster node sizing as described above. [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte)