`Airbyte-Platform Architecture` Hello there :wave:...
# replication-troubleshooting
p
Airbyte-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)
s
I can provide more info on the API piece. Public API calls are routed through an nginx reverse proxy to
airbyte-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.
p
Hello @Sunny Hashmi (Airbyte) šŸ‘‹, Very nice to hear from you šŸ˜‡ Thanks for the explanation. However, I can't see the
airbyte-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
Copy code
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 šŸ™‚
octavia thinking 1
s
Hey Pierre, thanks for pointing this out. Sorry for the confusion, I overlooked the different config in k8s and sent the wrong info. We do have plans to implement airbyte-proxy (more info on basic auth in there) but the routing piece currently lives in the environment. In env-configmap.yaml the variable is generated:
INTERNAL_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:
INTERNAL_API_HOST
- Define the url where the Airbyte Server is hosted at. Please include the port. Airbyte services use this information.
From here, it gets passed into the bundled nginx in
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 šŸ™‚
Also it's great to hear you found a way to make things more stable, do you think this will be a temporary solution / become an issue again in the future or was it just a one-time cleanup? Let me know if there is anything else I can look into.
p
Hello @Sunny Hashmi (Airbyte), If I understand well, the API calls does indeed have to go through the webapp ingress and bundled nginx before being forwarded to the server? If so, the webapp is currently a spof while trying to access the API and we have to keep that in mind. And for now, things are working but I have deactivated all tests and first sync manual triggers and I want to add them back asap šŸ™‚
s
@Pierre CORBEL could you submit this request on Github so that it can be prioritized?
p
Done here -> https://github.com/airbytehq/airbyte/issues/23433 Thanks @Sunny Hashmi (Airbyte) šŸ™
octavia loves 1