Is there a way to increase the number of reader an...
# replication-troubleshooting
b
Is there a way to increase the number of reader and writer containers on kubernetes? I’ve experimented with different combinations of the
JOB_MAIN_CONTAINER_*
parameters in the ConfigMap. I have not been able to change the number of containers (4 for reader, 5 for writer) and the overall transfer performance has only gotten worse. 😞 I doubled my machine type resources and saw a marginal increase in transfer. FWIW, my connection is from BigQuery to S3. I also see the same behavior when the source is Snowflake.
m
Usually that is configured with MAX_SYNC_WORKERS variable
b
Thanks, Marcelo. I’ll look for it.
Hey, @Marcelo Pio de Castro. I tried increasing MAX_SYNC_WORKERS (and other related params) from the default of ‘5’ to ‘8’. Nothing changed. Same number of containers. Same sync time on my test dataset. Any other ideas for how to increase parallelism for sync?
n
Hey, Brian! You can increase the number of reader and writer containers on Kubernetes by increasing the number of replicas for the
airbyte-worker
deployment. To create more worker pods when deploying Airbyte with Helm, you can modify the
values.yaml
file and increase the number of replicas for the
airbyte-worker
deployment. Here's an example of how to do this: 1. Open the
values.yaml
file that you're using for your Airbyte Helm deployment. 2. Locate the
airbyte
section and find the
worker
subsection. 3. Set the
replicas
value to the desired number of worker pods. For example:
Copy code
yaml
airbyte:
  ...
  worker:
    enabled: true
    replicas: 3
    ...
This example sets the number of worker replicas to 3. Adjust the value according to your needs. After modifying the
values.yaml
file, deploy or update your Airbyte Helm release with the updated configuration. Keep in mind that the provided information is based on the available extracts. For more details on Helm Charts, you can refer to the charts readme file. Additionally, make sure your Kubernetes cluster can accommodate the number of pods Airbyte creates. As a rule of thumb, ensure the cluster can schedule up to
2 x <number-of-possible-concurrent-connections>
pods at once source. This is the worse case estimate, and most users should be fine with
2 x <number-of-possible-concurrent-connections>
as a rule of thumb. Let me know if this helps!
b
Thank you, Nataly! I will give that a try!
Hey, @Nataly Merezhuk (Airbyte)! Looking at the
values.yaml
file in
airbyte-platform
, I see this:
Copy code
worker:
  enabled: true
  ##  worker.replicaCount Number of worker replicas
  replicaCount: 1
I assume, then, that I should use
replicaCount
in my custom
values.yaml
, yes?
Hey, @Nataly Merezhuk (Airbyte)! I tried the latter. After the helm upgrade, I had 3 worker pods running. That was great. But it didn’t achieve my objective. Yes, there were 3 workers. But what I need are multiple BigQuery readers, e.g.,
source-bigquery-read-104-0-stgzg
. I’m trying to increase parallelism on the read from BigQuery in order to reduce sync time. I have a 59G tabular datasource on BigQuery. My syncs to AWS S3 are taking 12 hours.
According to the Airbyte logs, writes to S3 are taking mere seconds. It’s the filling of the memory buffers from BigQuery that is taking a long time. According to k8s Lens, AirByte is spinning up 4 containers for the
read
pod. I want more containers. How can I get them?
From Lens:
IN looking through the source code, I can see that by increasing the number of worker replicas I can increase the number of jobs AirByte can run in parallel. that is super good to know. But that isn’t the main problem. I want to know how to make ONE job run faster.
f
Provide custom values for Jobs.resources. Increase the limits and requested values for cpu and memory
b
Hey, Fabiano! I have tried many combinations of job.resoruces.limits and job.resources.requests. Nothing that I changed improved performance, nothing I changed added or subtracted from the number of containers that AirByte spun up. The only thing my changes did was cause performance to degrade. 😞
m