<@U04S8PLJWMT> my connection from facebook marketi...
# ask-ai
c
@kapa.ai my connection from facebook marketing api is extremely slow, what might be the cause of it? I use open source airbyte
k
There are several reasons why your connection from the Facebook Marketing API might be extremely slow when using open source Airbyte: 1. API Rate Limiting and Quotas Facebook heavily throttles API tokens by default, which can cause syncs to take a very long time. If you are using a default app token, you may be hitting Facebook's rate limits. To improve performance, you may need to request a quota upgrade from Facebook or follow their best practices for rate limiting. See Facebook's [rate limiting documentation](https://developers.facebook.com/docs/graph-api/overview/rate-limiting) for more information. Airbyte documentation also highlights this as a common bottleneck for Facebook connectors [Performance considerations](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations). 2. High Data Volume or Too Many Fields If you are requesting too much data (e.g., too many fields, large time ranges, or many ad accounts), Facebook may return errors or slow down your requests. Airbyte logs may show errors like "Please reduce the number of fields requested" or "Too many rows"—in these cases, try reducing the number of fields or the time range in your sync configuration. This is a common cause of slow syncs and failures [Facebook marketing data sync issue - Reduce the number of fields error](https://github.com/airbytehq/airbyte/issues/49977), [Too many rows error](https://github.com/airbytehq/airbyte/issues/58667). 3. API Utilization Limits Even if your server resources (CPU, memory) are not maxed out, you may be hitting Facebook's API utilization limits. This can cause Airbyte to pause for several minutes between requests, as seen in logs with messages like "Utilization is too high, pausing for 1 minute." You can check your API utilization in the Facebook dashboard and request advanced access if needed [Facebook sync Utilization is too high (95)%, pausing for 5 minutes](https://discuss.airbyte.io/t/1186). 4. Airbyte Server Performance If your Airbyte instance is slow to load pages or process jobs, it could be due to resource constraints or memory leaks in the Airbyte server itself. Restarting the Airbyte server and worker containers can sometimes help, and upgrading to the latest Airbyte version may improve performance [Long loading time](https://discuss.airbyte.io/t/2536). 5. Connector and Normalization Performance Some users report that even with small data volumes, sync and normalization steps can take several minutes. This may be due to the way the connector or normalization is implemented, and there may be limited options to speed this up without changes to the connector code [Improving Connector Speed](https://discuss.airbyte.io/t/2752). Recommendations: - Reduce the number of fields and the time range in your sync configuration. - Check your Facebook API utilization and request higher quotas if needed. - Make sure you are using the latest version of Airbyte and the Facebook Marketing connector. - Restart Airbyte server and worker containers if you suspect a memory leak or performance degradation. - If you continue to experience issues, review Airbyte and Facebook logs for specific error messages that may indicate the root cause. If you need more specific troubleshooting, please provide error logs or more details about your configuration.
c
@kapa.ai facebook marketing applies an ad account level rate limit and it shows 0% usage this is a part of the log I have observed in facebook source logs 2025-11-13 094504 replication-orchestrator INFO Records read: 255000 (311 MB) 2025-11-13 094717 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 094935 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 095217 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 095504 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 095529 replication-orchestrator INFO Records read: 260000 (317 MB) 2025-11-13 095758 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 100047 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 100310 source WARN Facebook API Utilization is too high (86)%, pausing for 00200 2025-11-13 100526 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 100548 replication-orchestrator INFO Records read: 265000 (323 MB) 2025-11-13 100811 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 100848 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 101133 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 101407 replication-orchestrator INFO Records read: 270000 (329 MB) 2025-11-13 101417 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 2025-11-13 101859 source WARN Facebook API Utilization is too high (85)%, pausing for 00200 it looks like airbyte is only fetching 5000 rows per 15 minutes and waiting because it logs facebook api utilization is too high. Is this usage normal to have high utilization? I think it is a very low usage
k
A message from kapa.ai
Based on the information in your logs and the knowledge sources, it is not uncommon for Airbyte's Facebook Marketing connector to report high API utilization and pause the sync, even if the Facebook dashboard shows low or 0% usage at the ad account level. This is a known behavior and has been discussed by other users as well. Key points from the knowledge sources: - Airbyte logs such as "Facebook API Utilization is too high (85)%, pausing for 00200" indicate that the connector is internally tracking API utilization and is pausing to avoid hitting Facebook's rate limits. This is a built-in mechanism to prevent the sync from being blocked by Facebook due to excessive requests. - Users have reported similar issues where the Airbyte connector pauses frequently due to high utilization, even when the Facebook dashboard shows low usage. This suggests that the connector may be using a more conservative calculation or is subject to different (possibly undocumented) rate limits than what is visible in the Facebook dashboard. One user confirmed that their Facebook API utilization rate reached 100% in the dashboard, but others have seen pauses even when dashboard usage is low. The recommendation is to request "advanced access" in the Facebook app dashboard to potentially increase your rate limits, but this may not always resolve the issue entirely [Facebook sync Utilization is too high (95)%, pausing for 5 minutes](https://discuss.airbyte.io/t/1186). - Facebook's API rate limiting is complex and can apply at multiple levels (app, user, ad account, etc.), and the limits may not always be transparent. Airbyte's documentation and forum posts recommend following Facebook's best practices and requesting quota upgrades if you are running into these issues [Performance considerations](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations). Is this usage normal? Yes, it is normal for Airbyte to pause frequently due to high API utilization, especially when syncing large volumes of data. The connector is designed to be cautious to avoid being blocked by Facebook. Fetching 5,000 rows per 15 minutes can happen if the connector is hitting its internal thresholds, even if the Facebook dashboard does not reflect high usage. What can you do? - Request advanced access or a quota increase from Facebook to potentially improve your rate limits. - Reduce the number of fields or the time range in your sync configuration to decrease the load on the API. - Be aware that, due to Facebook's API design and Airbyte's conservative approach, high utilization warnings and pauses may still occur even with low visible usage in the Facebook dashboard. If you continue to experience issues, you may want to review your sync configuration and consider reaching out to Facebook support for more details on your specific rate limits.
r
what could be done in terms of your sync configuration to improve / mitigate hitting the facebook API rate limits
@kapa.ai
k
A message from kapa.ai
You’re seeing expected (though frustrating) behavior from the Facebook Marketing source connector, not from your infrastructure. From the forum thread about this exact log pattern, Airbyte’s Facebook Marketing connector reads Facebook’s own API utilization metric and pauses when it considers it too high, logging messages like: >
Utilization is too high (90)%, pausing for 1 minute
[[Facebook utilization](https://discuss.airbyte.io/t/1186)] In that case, the user also reported very low EC2 CPU usage, but Facebook’s API utilization in the Meta dashboard was 100%, confirming that the pauses were due to Facebook rate limiting, not server resources. [[Facebook utilization](https://discuss.airbyte.io/t/1186)] Separately, Airbyte’s documentation notes that Facebook can heavily throttle tokens by default, and warns that without higher quotas “syncs [may take] days due to rate limiting.” [[Facebook pages perf](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations)] This matches your symptoms of only progressing a few thousand records between long pause windows. A few important implications: 1. The “0% usage” you see for the ad account is not the whole story. Facebook applies rate limits at several levels (app, user, sometimes per edge), and Airbyte is reacting to the utilization value Facebook returns on the API, which can differ from what your ad‑account UI shows. The forum example shows API utilization being the real bottleneck, even when machine resources are almost idle. [[Facebook utilization](https://discuss.airbyte.io/t/1186)] 2. The throughput you’re seeing (≈5k rows per ~15 minutes) is consistent with being rate‑limited. The connector is conservative: once utilization crosses its internal threshold (e.g., 85–90%), it sleeps for a fixed time (1–5 minutes in known cases) before trying again, which produces exactly the “read 5k rows, then many WARN pauses” pattern. [[Facebook utilization](https://discuss.airbyte.io/t/1186)] 3. This is considered “normal” under default Facebook limits. Airbyte explicitly cautions that, with default throttling, syncs can become impractically slow unless you obtain better rate limits from Facebook. [[Facebook pages perf](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations)] Given the available information, there’s no documented way in Airbyte OSS to override or relax this utilization logic for the Facebook Marketing connector; the main levers mentioned are on the Facebook side: - Request higher quotas / “advanced access” for your app and review Facebook’s rate‑limit docs. [[Facebook pages perf](https://docs.airbyte.com/integrations/sources/facebook-pages#performance-considerations); [Facebook utilization](https://discuss.airbyte.io/t/1186)] - Reduce how much data you pull per sync (narrow date ranges, fewer fields/streams) to keep utilization lower and reduce the number of forced pauses. A related GitHub issue shows Facebook asking users to “reduce the number of fields requested” when syncs are too heavy. [[Reduce fields error](https://github.com/airbytehq/airbyte/issues/49977)] The knowledge sources do not describe any configuration flag in Airbyte OSS that would let you change the “85% utilization → pause 2 minutes” behavior directly, so if you’ve already minimized the data you request, the remaining avenue is improving your Facebook API quotas.