Pierre CORBEL
02/20/2023, 10:59 PMAirbyte-Platform Architecture
Hello there š,
I'm using Airbyte deployed on EKS via the helm chart.
I have several questions regarding the platform architecture
⢠First, I find it very weird that the REST API is handled by the WebApp component. I think the REST API should be the main access point to communicate with the server and should be completed decoupled from the frontend. We should be able to run Airbyte without a frontend.
⢠Second, I suspect a strongly coupled architecture between jobs and the server. I run a multi-tenant architecture where I have one connection per tenant. I clearly while they are syncs in progress, the API is very unresponsive and I have a lot of timeouts. I think the REST API should be completely decoupled from whatever happens in the background and highly available.
Do someone know if there is a roadmap / slack channel regarding Airbyte architecture? (and not about connectors themselves)Sunny Hashmi (Airbyte)
02/22/2023, 4:27 PMairbyte-server, rather than airbyte-webapp. The nginx config lives here: https://github.com/airbytehq/airbyte-platform/tree/main/airbyte-proxy
Can you share more info on where you're seeing timeouts? We can likely fix this with the right config š There are some general tips for scaling airbyte in this doc, you might also want to look at the Jobs config and Worker config parameters.Pierre CORBEL
02/23/2023, 3:38 PMairbyte-proxy component / pod deployed with the latest helm chart. I assume it's only available for docker-compose deployments? Or is it embedded in the airbyte-server and the airbyte-webapp pods? (I have added the BASIC_AUTH_* variables to both the airbyte-server and the `airbyte-webapp`but it didn't have any impact. I ended up rollbacking my auth at the `airbyte-webapp`ingress level directly with
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth-config
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
Am I doing something wrong? Or is it planned to add it to k8s?
And regarding the timeouts, removing a lot of operations like source/destination tests ended up decreasing the load and making the API more stable.
Thanks for the docs link btw šSunny Hashmi (Airbyte)
02/23/2023, 5:04 PMINTERNAL_API_HOST: {{ .Release.Name }}-airbyte-server-svc:{{ .Values.server.service.port }}
This env is also included in Airbyte's docker-compose.yaml for the worker service, which implies it is used internally. The Configuring Airbyte doc has a brief description to confirm this:
From here, it gets passed into the bundled nginx in- Define the url where the Airbyte Server is hosted at. Please include the port. Airbyte services use this information.INTERNAL_API_HOST
airbyte-webapp where nginx will proxy_pass the /api endpoint to INTERNAL_API_HOST/api/ .
I think that's everything, please let me know if I missed something or if you have any more questions šSunny Hashmi (Airbyte)
02/23/2023, 5:06 PMPierre CORBEL
02/24/2023, 12:11 PMSunny Hashmi (Airbyte)
02/24/2023, 2:05 PMPierre CORBEL
02/24/2023, 2:13 PM