Hi there, I have four airbyte instances set up on ...
# replication-troubleshooting
r
Hi there, I have four airbyte instances set up on Google Cloud. Running for a couple months now, but there are already three times I saw Airbyte stuck - in UI the sync processes just keep spinning, even after days. Server is fine, load is almost none. I can attach logs, but is this a common error? I'm attaching the biggest error message from airbyte-worker. BTW
docker restart airbyte-server airbyte-worker
seems to fix it, but I do hope it's more stable
m
Hey Ryan, just to be clear, is this on GCE or GKE?
r
GCE
m
Then it seems like airbyte-temporal is dying on you. What is the size of the VM?
r
it's 8 vCPUs, 8 GB memory (all instances are the same). Google actually recommends me to downgrade it (in 3 out of 4 instances)
I am not sure how to control airbyte-temporal
m
temporal is a service that actually spawns the containers from source/destination that airbyte uses:

https://docs.airbyte.com/assets/images/understanding_airbyte_high_level_architecture-ac5aa905ca8916521b41cdaecec4cd08.png▾

So if it dies, you will have a problem. That can happens if you have a lot of syncs happening on the same time and the VM can't handle the load
r
thanks. So how can I configure that?
m
What you can do to control it is setup the maximum syncs that you can handle at the same time: https://docs.airbyte.com/operator-guides/configuring-airbyte#worker
Just change those variables on the .env file and you are good to go
You can also try limiting the memory for the connectors, but I prefer to do that on a case by case, by using the airbyte API to change the limit for a specific connection
r
thanks. Couple questions: • Just
MAX_SYNC_WORKERS
, or others as well? Should I keep all worker configuration the same, e.g. 10 for all of them? • What would be a good number to change to, if I have about 60 tables? Doc doesn't have a suggestion • Do I need to restart docker? I guess so
m
MAX_SYNC_WORKERS
is usually the most problematic, so I would start with that, but remember that sync also spawns at least a check job also, but usually that is quick and should not be a problem
a good number depends on your environment and connections, we had to downgrade to 2 max syncs on a similar VM as yours, because a sync job would consume 4gb ram
the number of tables doesn't matter much, depends more on how heavy each line is for a specific table, so, having a lot of columns is usually worse
r
so I should set it lower than 5, not higher?
m
yes, since temporal is dying, one thing that could be happening is that you are running out of RAM
r
ah, I see. I don't see the memory usage reached 100% but it was high. I will change that. Thanks!