Once a day I collect data from multiple integratio...
# ask-ai
h
Once a day I collect data from multiple integrations and multiple tenants. I split the time of collection to be per-tenant and with 10 minutes in between each tenant. Even after the time separation I daily get this k8s error:
Percentage of Healthy Pods Below 44%
Why can it possibly happen?
k
The error "Percentage of Healthy Pods Below 44%" in your Kubernetes (k8s) Airbyte deployment likely indicates that a significant number of pods are failing to start, are stuck in an error state, or are not passing their readiness/liveness probes during your daily data collection runs. Based on the knowledge sources, here are some possible reasons this could happen in an Airbyte context: 1. Resource Exhaustion or Limits: Running multiple syncs concurrently, even with time separation, can still overwhelm your cluster if the total resource requests (CPU, memory, ports) exceed what is available. This can cause pods to fail to start, get stuck in
Init:Error
, or be evicted by Kubernetes. Users have reported that running many jobs at once can lead to pod failures, especially if resource requests are not tuned or if there are not enough available ports for the worker pods. Restarting the worker sometimes temporarily resolves the issue, but it recurs if the underlying resource constraints are not addressed [Running too many syncs concurrently causing non-explicit failures](https://discuss.airbyte.io/t/3856). 2. Pods Stuck in Terminating or Error State: If Airbyte pods (source, destination, orchestrator) get stuck in terminating or error states, they may not be cleaned up promptly, leading to resource starvation and a drop in the percentage of healthy pods. The pod-sweeper is responsible for cleaning up stale pods, but if it runs infrequently or if there are too many pods to clean up, unhealthy pods can accumulate [Destination, orchestrator, and source pod all stuck in terminating](https://discuss.airbyte.io/t/2545). 3. Kubernetes Node or Network Issues: If a node is restarted or there are network/storage disruptions (e.g., loss of connection to storage backends), pods may hang, fail liveness probes, or become "zombies" that are not automatically restarted. This can also reduce the healthy pod percentage [workload-launcher false positive liveness probes under lost storage connection](https://github.com/airbytehq/airbyte/issues/57011), [connection hangs on node maintenance or swap](https://github.com/airbytehq/airbyte/issues/44474). 4. Concurrency and Scaling Issues: Airbyte's default scaling and concurrency settings may not be optimal for your workload. If too many jobs are scheduled at once, or if the worker autoscaling is not tuned, you may hit resource or port exhaustion, leading to pod failures [Worker autoscale in k8s](https://github.com/airbytehq/airbyte/issues/27691). What you can do: - Review and increase your cluster resources (CPU, memory, node count) if possible. - Tune Airbyte's resource requests/limits and the maximum number of concurrent workers. - Monitor and adjust the pod-sweeper frequency to ensure stale pods are cleaned up quickly. - Investigate if any pods are stuck in terminating or error states and why. - Check for node restarts or network/storage disruptions during your sync windows. If you continue to see this error even after time-separating tenants, it suggests that the total load is still too high for your current cluster configuration, or there are lingering unhealthy pods from previous runs. If you need more specific troubleshooting, you may want to look at the logs for the failing pods and the Kubernetes events around the time the error occurs. If you need further help, please provide more details about your cluster size, Airbyte version, and resource configuration.