<@U04S8PLJWMT> I am synching data from mongo to cl...
# ask-ai
a
@kapa.ai I am synching data from mongo to clickhouse and i have only two table sync was completing within 5 minutes before update to 1.8.4 not its taking more than one hour I have latest clickhouse latest airbyte version but mongo is the least version
k
Based on the information in the knowledge sources, it is clear that several users have experienced significant slowdowns in sync performance after upgrading Airbyte or its connectors, especially with MongoDB as a source. Here are some key points relevant to your situation: 1. Connector Upgrades Can Impact Performance Multiple users have reported that upgrading the MongoDB connector (and sometimes Airbyte itself) led to much slower syncs. For example, one user saw sync times increase from less than 30 seconds to 45 minutes for a small number of records after upgrading Airbyte, which also updated the connectors. The new MongoDB v2 connector, which uses Change Data Capture (CDC), introduced breaking changes and may have different performance characteristics compared to previous versions. Some users found that the new connector was much slower, and in some cases, schema discovery or syncs would not complete at all. The engineering team noted that some upgrades traded speed for stability and reliability, especially with large datasets or CDC mode enabled [Severe Performance Degradation Mongo Connector](https://discuss.airbyte.io/t/1011) [Airbyte ingestion slower after connector upgrade to 1.X](https://discuss.airbyte.io/t/2416). 2. No Immediate Solution or Tuning Guidance Support responses indicate that, as of now, there is no official guide or clear way to tune the new connectors for better performance. Increasing memory or CPU allocation did not help in some cases. The throughput of 2K-3K rows per second was considered "within the normal range" for the new database connectors, and there is no obvious way to speed up the connection further. The engineering team acknowledged the issue but did not provide a fix or workaround [Airbyte ingestion slower after connector upgrade to 1.X](https://discuss.airbyte.io/t/2416). 3. Faster Sync Speed Initiative Airbyte has released a "faster sync speed" initiative for some connectors in version 1.8 and later, but this only applies if both the source and destination connectors support it and are upgraded to compatible versions. If your MongoDB connector is still on an older version, you may not benefit from these improvements. Upgrading the MongoDB connector to a version that supports faster syncs (if available) may help, but be aware of the breaking changes and test thoroughly [Faster sync speed](https://docs.airbyte.com/integrations/speed-improvements). 4. ClickHouse Destination There are no specific reports of ClickHouse being a bottleneck in the sources provided, but ensure you are using the latest, non-deprecated ClickHouse destination and that your user permissions and network access are correctly configured [ClickHouse destination docs](https://docs.airbyte.com/integrations/destinations/clickhouse). Summary: The slowdown you are experiencing is a known issue after upgrading Airbyte and/or its connectors, particularly with MongoDB as a source. The new connector versions may be slower due to architectural changes (like CDC). There is currently no official fix or tuning guide, and increasing resources may not help. You may want to test with the latest MongoDB connector (not just Airbyte core and ClickHouse), but be prepared for breaking changes and test in a staging environment first. If performance remains unacceptable, you may need to consider alternative approaches or wait for further improvements from the Airbyte team. If you need more specific troubleshooting, please provide the exact versions of your MongoDB connector and more details about your sync configuration. Let me know if you need guidance on upgrading the MongoDB connector or further troubleshooting steps.
a
@kapa.ai{"version":"2.6.2.Final","connector":"mongodb
k
A message from kapa.ai
The string
{"version":"2.6.2.Final","connector":"mongodb"}
appears in the context of Airbyte's MongoDB source connector logs, specifically when using Change Data Capture (CDC) mode. This JSON snippet is part of the metadata attached to CDC change events produced by the Debezium engine, which Airbyte uses internally for CDC with MongoDB. -
"version":"2.6.2.Final"
refers to the version of the Debezium MongoDB connector being used. -
"connector":"mongodb"
indicates that the connector type is MongoDB. This information is typically included in the CDC event payloads to help identify the source and version of the connector that generated the event. It is not a configuration you set, but rather metadata output by the connector during sync operations. You can see examples of this in the logs from Airbyte syncs involving MongoDB CDC [Github Issue: Out of memory error when copying from temporary to permanent collection](https://github.com/airbytehq/airbyte/issues/48851). If you need more details about the meaning or usage of this field, please clarify your question.
a
@kapa.ai Unable to acquire buffer lock, buffer queue is likely full
k
A message from kapa.ai
The error message "Unable to acquire buffer lock, buffer queue is likely full" indicates that the internal buffer used by Airbyte to temporarily store records during sync is full. This situation can occur when the rate at which data is read from the source (e.g., MongoDB) exceeds the rate at which it can be written to the destination (e.g., ClickHouse). When the buffer is full, the connector cannot proceed until space is freed, which can lead to sync slowdowns or even failures. From the knowledge sources, a similar issue is discussed in the context of CDC (Change Data Capture) syncs, where users have experienced performance bottlenecks and buffer-related errors. One recommendation is to increase the size of the queue (buffer) in the source configuration, which may help alleviate the issue by allowing more records to be held in memory before being written to the destination. However, this will also increase memory usage, so ensure your environment has sufficient resources [Incremental sync error on specific collection - Saved offset is not valid](https://github.com/airbytehq/airbyte/issues/46569). Additionally, if the destination is slow to process incoming data, it can cause backpressure, filling up the buffer. In such cases, optimizing the destination's performance or scaling up resources may help. Summary of steps you can try: - Increase the buffer/queue size in the source connector's advanced settings. - Ensure your Airbyte instance has enough memory to handle a larger buffer. - Check if the destination (ClickHouse) is a bottleneck and optimize its performance if possible. If you continue to experience issues, please provide more details about your connector versions and sync configuration for more targeted troubleshooting. If you need guidance on how to adjust the buffer size, let me know!
a
@kapa.ai Resume token is not null
k
A message from kapa.ai
A non-null resume token in the context of Airbyte's MongoDB source connector (especially when using CDC/Change Streams) is expected and necessary for incremental syncs. The resume token represents the last processed position in the MongoDB oplog or change stream, allowing Airbyte to continue syncing from where it left off in the event of a restart or failure. However, issues can arise if the resume token becomes invalid or outdated—such as when the oplog entry it references is no longer available due to oplog retention limits. In such cases, you may encounter errors like "Saved offset is not valid" or "cannot resume stream; the resume token was not found" [Connector Limitations](https://docs.airbyte.com/integrations/sources/mongodb-v2/mongodb-v2-troubleshooting#connector-limitations) [Incremental sync error on specific collection - Saved offset is not valid](https://github.com/airbytehq/airbyte/issues/48496). Key points: - A non-null resume token is normal and required for CDC-based syncs. - If the resume token is invalid (e.g., due to oplog window expiration), syncs will fail and may require a full refresh or manual intervention. - To avoid issues, ensure your oplog retention is sufficient and your sync frequency is high enough to prevent the resume token from referencing purged oplog entries. If you are seeing errors related to the resume token, please provide more context or error messages for more specific guidance.
a
@kapa.ai if i increase the Size of the queue (Advanced) it will reduce time or not
k
A message from kapa.ai
Increasing the Size of the queue (Advanced) in the MongoDB source connector configuration may help if your syncs are failing or stalling due to the internal buffer (queue) filling up—this is especially relevant if you see errors like "Unable to acquire buffer lock, buffer queue is likely full." By increasing the queue size, you allow Airbyte to hold more records in memory before they are written to the destination, which can help prevent buffer overflows and related errors. However, the knowledge sources do not explicitly state that increasing the queue size will directly reduce sync time. It may help with stability and prevent certain errors, but it will also increase memory usage. If the bottleneck is elsewhere (for example, if the destination is slow or there are network issues), increasing the queue size alone will not make the sync faster [Incremental sync error on specific collection - Saved offset is not valid](https://github.com/airbytehq/airbyte/issues/46569) [MongoDB v2 Config Reference](https://docs.airbyte.com/integrations/sources/mongodb-v2#reference). In summary: Increasing the queue size can help avoid buffer-related errors, but it is not guaranteed to reduce sync time unless the buffer size was the limiting factor. If your destination or network is the bottleneck, you may not see a speed improvement. If you need to adjust the queue size, you can do so in the source connector's advanced settings, but monitor your system's memory usage carefully.