<@U04S8PLJWMT> i am seeing a lot of times out for ...
# ask-ai
i
@kapa.ai i am seeing a lot of times out for schema change updates using the api
k
Schema discovery and schema change updates timing out via the API is a known issue in Airbyte, especially when dealing with large sources (many tables/columns) or slow-responding APIs. Several users have reported HTTP 504 (Gateway Timeout) or similar errors during schema discovery or refresh operations. This can happen for various connectors, including databases like Oracle, MSSQL, MongoDB, and APIs like NetSuite and Facebook Marketing. Common causes and solutions: 1. Timeouts in Airbyte or Proxy/Load Balancer: - The schema discovery process can take a long time for large sources, sometimes exceeding default timeout settings in Airbyte, NGINX, or other proxies/load balancers. - You can increase Airbyte's internal timeout by setting environment variables, for example:
Copy code
yaml      server:          extraEnvs:            - name: HTTP_IDLE_TIMEOUT              value: 20m            - name: READ_TIMEOUT              value: 30m
This is documented for both self-managed and enterprise setups and can help prevent timeouts during schema discovery for large sources [Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts). 2. NGINX/Ingress Timeout: - If you are running Airbyte behind NGINX or a cloud load balancer, you may also need to increase the proxy timeout settings. Several users have reported that increasing the NGINX timeout resolved their 504 errors [Forum: Failed to load schema in discovery_schema timeout in LoadBalancer](https://discuss.airbyte.io/t/2665), [Github: Error 504 when the configure connection takes more then 1min to get database schemas](https://github.com/airbytehq/airbyte/issues/29712). 3. Connector/Source Limitations: - Some connectors (e.g., NetSuite, Facebook Marketing) may have slow metadata APIs, causing Airbyte to time out before the schema is fetched. In these cases, increasing the timeout as above is recommended, but sometimes the connector itself may need improvements [Github: Fetch schema timeout issue with NetSuite connector](https://github.com/airbytehq/airbyte/issues/25223), [Github: source-facebook-marketing timeout](https://github.com/airbytehq/airbyte/issues/53132). 4. API Limitations: - Updating the schema via the API is only possible through the discover schema operation. Overwriting the schema directly via the API is not supported and will not persist; the schema is always regenerated by the discover step [Forum: Updating Schema via API doesn't persist](https://discuss.airbyte.io/t/2776). Recommendations: - Increase both Airbyte and proxy/load balancer timeouts as described above. - Limit the number of tables/objects the Airbyte user can access to reduce discovery time. - If you continue to see timeouts after increasing timeouts, check connector-specific issues or logs for further troubleshooting. If you need more specific guidance, please provide details about your deployment (cloud, self-managed, Docker/Kubernetes), the connector in use, and the size of your source schema.
i
@kapa.ai how much time would a schema change detection job would take ?
k
A message from kapa.ai
The time required for a schema change detection (schema discovery) job in Airbyte can vary significantly depending on several factors, including: - The number of tables and columns in your source. - The complexity of the source system (e.g., databases with thousands of tables or S3 buckets with thousands of files). - The performance of the source system and network latency. There are no strict guidelines or guarantees for how long schema discovery will take. For example, a user reported that discovering schemas for approximately 500 tables took about 3.5–4 minutes, which was considered reasonable, though optimizations are encouraged for better user experience. The main concern is user experience and potential timeouts, not technical limitations—longer discovery times are not inherently problematic, but may lead to poor UX or timeout errors if not configured properly [Guidelines for acceptable schema discovery time](https://discuss.airbyte.io/t/893). If you are experiencing timeouts, you can increase Airbyte's timeout settings to accommodate longer schema discovery jobs, especially for large sources. For example:
Copy code
yaml server:     extraEnvs:       - name: HTTP_IDLE_TIMEOUT         value: 20m       - name: READ_TIMEOUT         value: 30m
[Scaling Airbyte: Schema Discovery Timeouts](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts) In summary, schema change detection can take from seconds to many minutes, depending on your source size and environment. There is no fixed duration, and you may need to adjust timeout settings for large or complex sources.