I have a sync with "incremental sync" and split up...
# ask-ai
l
I have a sync with "incremental sync" and split up interval configured however, I noticed that airbyte is sending the first 2-3 requests in parallel can I control it?
k
Yes, you can control the number of parallel requests Airbyte sends during a sync by configuring the concurrency settings in your connector. In the Connector Builder UI, you can set the Concurrency Level under Global Configuration. This allows you to specify both a default concurrency (how many simultaneous requests are made) and a maximum concurrency (a safety limit). You can set these as fixed integer values or reference a user configuration field. For example, you could set Default Concurrency to
5
and Max Concurrency to
10
, which would limit the number of parallel requests accordingly. This is designed to help you optimize performance and respect API rate limits or backend capacity constraints. If you want to ensure only one request is sent at a time, set the concurrency to
1
(though be aware that a value of 1 could create deadlocks if a stream has many partitions) [Global Configuration](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/global-configuration) [ConcurrencyLevel object](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). Here’s an example configuration in YAML:
Copy code
yaml concurrency_level:   default_concurrency: 2   max_concurrency: 3
Or, if you want to make it user-configurable:
Copy code
yaml concurrency_level:   default_concurrency: "{{ config['num_workers'] or 2 }}"   max_concurrency: 3
Adjust these values to control how many requests are sent in parallel during incremental syncs with split up intervals. If you are seeing 2-3 requests in parallel, it is likely due to the current concurrency configuration. Lowering the concurrency value will reduce the number of parallel requests sent by Airbyte during syncs [ConcurrencyLevel object](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). If you are using a specific connector or Airbyte version, make sure to check the relevant documentation for that version, as the configuration options are consistent across recent versions.
l
@kapa.ai I cant see it in the ui airbyte version 1.7.2
k
A message from kapa.ai
In Airbyte version 1.7.2, the ability to configure concurrency for incremental syncs and split up intervals directly in the Connector Builder UI is not explicitly documented in the available knowledge sources. The documentation for version 1.7 describes how concurrency can be set in the YAML configuration for config-based connectors using the
ConcurrencyLevel
object, where you can specify
default_concurrency
and
max_concurrency
values. However, there is no mention of a UI option for this in version 1.7.2—these settings are available in the YAML, not the UI [ConcurrencyLevel object](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). If you are using the Connector Builder UI in 1.7.2 and do not see concurrency controls, this is expected based on the documentation. To control concurrency, you would need to edit the YAML definition of your connector and add the
concurrency_level
configuration there. Summary: - In Airbyte 1.7.2, concurrency for split up intervals is controlled via YAML, not the UI. - You can add a
concurrency_level
block in your connector's YAML to set this. - The UI option for concurrency appears in later versions, but is not documented for 1.7.2. If you need help with the YAML configuration, let me know!
l
@kapa.ai at what leveldo i set it on the yaml?
k
Sorry @Lucas Segers, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
l
@kapa.ai where do i set it in the builder yaml? definitions.concurrency_level?
k
A message from kapa.ai
In Airbyte 1.7.x, to control concurrency in a config-based (low-code) connector, you set the
concurrency_level
property at the top level of your YAML, not inside
definitions
. It should be a direct property of the root
DeclarativeSource
object, alongside properties like
streams
,
check
, and
spec
. Here’s an example of where to place it in your builder YAML:
Copy code
yaml version: "0.1.0" streams:   # ... your stream definitions ... check:   # ... your check definition ... spec:   # ... your spec definition ... concurrency_level:   default_concurrency: 2   max_concurrency: 3
So, do not put it under
definitions.concurrency_level
. Instead, place
concurrency_level
at the root level of your YAML file, as shown above [Understanding the YAML file (1.7)](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). If you want to make it user-configurable, you can use interpolation:
Copy code
yaml concurrency_level:   default_concurrency: "{{ config['num_workers'] or 2 }}"   max_concurrency: 3
This will control how many requests are sent in parallel during syncs.
l
@kapa.ai errored Warning from source: Error starting the sync. This could be due to an invalid configuration or catalog. Please contact Support for assistance. Error: Expected manifest component of type ConcurrencyLevel, but received None instead concurrency_level: max_concurrency: 1 default_concurrency: 1
k
A message from kapa.ai
Based on the knowledge sources for Airbyte 1.7, the
concurrency_level
property should be set at the root level of your YAML manifest, as you have done. The correct structure is:
Copy code
yaml concurrency_level:   default_concurrency: 1   max_concurrency: 1
However, the error message: > Expected manifest component of type ConcurrencyLevel, but received None instead suggests that Airbyte is not recognizing the
concurrency_level
block. This could be due to one of the following reasons: 1. YAML Placement: Ensure that
concurrency_level
is at the root level of your YAML, not nested under
definitions
or any other block. It should be a sibling to
streams
,
check
, and
spec
 [ConcurrencyLevel object](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). 2. YAML Formatting: Double-check for indentation or formatting issues in your YAML file, as YAML is sensitive to whitespace. 3. Airbyte Version Support: While the documentation for 1.7 lists
concurrency_level
as a valid property, it is possible that your specific connector type or the builder UI in 1.7.2 does not yet support this property, or there may be a bug or limitation not documented in the available sources. 4. Component Reference: The error message indicates that Airbyte is expecting a
ConcurrencyLevel
component but is receiving
None
. This could mean that the property is not being parsed correctly, possibly due to a typo or a missing required field elsewhere in the manifest. Summary: - Your YAML syntax for
concurrency_level
appears correct according to the documentation. - If the error persists, it may be due to a limitation or bug in Airbyte 1.7.2 that is not covered in the documentation. - The knowledge sources do not provide further troubleshooting steps for this specific error. If you continue to encounter this error, you may need to reach out to Airbyte support or consult the Airbyte community for version-specific issues, as the documentation does not provide more detail on this error scenario [ConcurrencyLevel object](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel).