Greetings. I have Airbyte deployed to an EKS clust...
# replication-troubleshooting
s
Greetings. I have Airbyte deployed to an EKS cluster in AWS. I find that I need to manually cycle the deployments every week or so, else new pods aren’t able to be placed. This cluster’s nodes do not have any sort of horizontal pod autoscaling configured, and I’m limited to 2 nodes. Does Airbyte try to do its own scaling in a way that it would get stuck if the cluster didn’t allow it to grow? Has anyone else run into periodic pod placement failures of this nature?
One node is largely utilized, but the other has plenty of CPU and memory left for sync tasks. So there should be adequate resources for Airbyte schedule syncs.
a
not exactly sure what errors you are getting during sync start/pod placement, but does sound similar to https://discuss.airbyte.io/t/resource-leak-in-airbyte-worker/2309
s
This does seem exactly related. I’ve seen this error before, and now I have something specific to look for next time!
a
just added a comment there with my current workaround
s
Awesome, thank you. This thread is quite illuminating.
Your workaround seems quite good. I’m going to give it a try.
@Adam Bloom What is the container orchestrator? Is that an optional Kubernetes service? Something built into Airbyte?
a
trying to find a diagram...this is the best I can find https://docs.airbyte.com/understanding-airbyte/jobs#worker-job-architecture when running a sync, messages get passed from the source -> airbyte-worker -> destination. with container orchestrator enabled, airbyte-worker first spins up an orchestrator pod that takes the role of airbyte-worker in that diagram, so makes things more scalable and allows syncs to continue if airbyte-worker were to be restarted/upgraded/etc
s
Perfect, thank you.
This also helps explain why I’m not seeing this behavior in Linode. I’m using the built-in Min.IO object storage, and that must not have the same issue.
Interesting. The docs say:
The Container Orchestrator is only available for Airbyte Kubernetes today and automatically enabled when running the Airbyte Helm charts/Kustomize deploys.
It wasn’t automatically enabled for my deployment. Maybe that was changed in a more recent version?
I don’t see a way to enable it through the Helm configuration. Is there another page that describes installing the orchestrator? What is the orchestrator pod called in your deployment?
a
no, it is not automatically enabled for helm deploys. its a bug in the helm chart. it's "enabled": https://github.com/airbytehq/airbyte-platform/blob/main/charts/airbyte/values.yaml#L819, but that value isn't passed through
Copy code
worker:
  resources:
    limits:
      memory: 2Gi
  image:
    tag: ${airbyte_version}
  containerOrchestrator:
    enabled: true
  extraEnv:
    - name: CONTAINER_ORCHESTRATOR_ENABLED
      valueFrom:
        configMapKeyRef:
          key: CONTAINER_ORCHESTRATOR_ENABLED
          name: airbyte-airbyte-env
you'll need to setup state storage to use orchestrator, and that also isn't working correctly in the helm chart for storage backends besides minio
s
Thank you - this is hugely helpful.
What Airbyte version are you running?
a
Copy code
helm_version            = "0.43.22"
  airbyte_version         = "0.41.0"
we have our values.yaml setup to pass airbyte_version tags to all of the images, so we've decoupled the chart version from the airbyte release (as much as possible)
s
So what you’re saying is we need to use Min.IO for container orchestrator?
If I’m already using Min.IO, is there additional configuration to make container orchestrator work?
a
i'm not sure if the defaults are sufficient - I'd hope so, but am not confident
s
Alright, thank you again. You’ve given me plenty with which to start experimenting.
Have you tried increasing the worker replica count?
I’m curious how that compares to deploying the orchestrator.
a
no - would that even work? how would the messages for the sync job end up going through the same worker pod with multiple replicas?
s
I would assume the worker retains a reference to the pods it starts, so it can ensure messages are routed to it. The fact that there’s a worker replica count setting implicitly implies workers are scalable.
I guess it explicitly states workers are scalable and implicitly states Airbyte still functions properly when workers are scaled. Of course, the issue at hand isn’t solved; it’s only made worse because more workers means more unclosed threads.