<@U04S8PLJWMT> - I have Airbyte Self-Managed insta...
# ask-ai
s
@kapa.ai - I have Airbyte Self-Managed installed on a Debian VM - it's a e2-standard-4 (4 vCPUs, 16 GB Memory) - hosted on GCP. I have 2 questions about setting up for scalability and performance. 1. One of the connectors I'm using is Hubspot, which appears to transfer quite slowly (~ 5000 records every 10 minutes. see below). Could increasing the resources on my VM help improve this at all? 2. It looks like I'm unable to start other syncs while this one is running - perhaps due to the number of workers? How can I either a) add more workers, b) limit the number of workers a connector uses, or both? and also potentially improve maintain high performance of all my syncs? sample log messages from the Hubspot sync: 2025-10-13 064923 replication-orchestrator INFO Records read: 1305000 (360 MB) 2025-10-13 065903 replication-orchestrator INFO Records read: 1310000 (361 MB) 2025-10-13 070841 replication-orchestrator INFO Records read: 1315000 (362 MB) 2025-10-13 071818 replication-orchestrator INFO Records read: 1320000 (364 MB) 2025-10-13 072753 replication-orchestrator INFO Records read: 1325000 (365 MB) 2025-10-13 073730 replication-orchestrator INFO Records read: 1330000 (366 MB) 2025-10-13 074707 replication-orchestrator INFO Records read: 1335000 (367 MB) 2025-10-13 075642 replication-orchestrator INFO Records read: 1340000 (368 MB) 2025-10-13 080616 replication-orchestrator INFO Records read: 1345000 (370 MB) 2025-10-13 081550 replication-orchestrator INFO Records read: 1350000 (371 MB) 2025-10-13 082527 replication-orchestrator INFO Records read: 1355000 (372 MB) 2025-10-13 083459 replication-orchestrator INFO Records read: 1360000 (373 MB) 2025-10-13 084431 replication-orchestrator INFO Records read: 1365000 (374 MB) 2025-10-13 085404 replication-orchestrator INFO Records read: 1370000 (376 MB) 2025-10-13 090339 replication-orchestrator INFO Records read: 1375000 (377 MB) 2025-10-13 091315 replication-orchestrator INFO Records read: 1380000 (378 MB) 2025-10-13 092252 replication-orchestrator INFO Records read: 1385000 (379 MB) 2025-10-13 093227 replication-orchestrator INFO Records read: 1390000 (380 MB) 2025-10-13 094205 replication-orchestrator INFO Records read: 1395000 (382 MB) 2025-10-13 095143 replication-orchestrator INFO Records read: 1400000 (383 MB) 2025-10-13 095155 destination INFO pool-3-thread-1 i.a.c.l.d.i.JsonDestinationMessageInputFlow(collect):41 Processed 1400000 messages (494Mb)
k
Certainly! Here’s a focused response to your questions based on the provided knowledge sources: --- ### 1. Will increasing VM resources help improve Hubspot sync speed? Increasing your VM’s CPU and memory can help, but only up to a point. Airbyte’s sync speed is often limited by the connector itself (in this case, Hubspot), network/API rate limits, and how the connector is implemented. For many connectors, especially SaaS APIs like Hubspot, the bottleneck is often the API’s own rate limits or pagination, not your VM’s resources. However, if your current resources are maxed out (high CPU/memory usage), scaling up can help avoid resource contention and may improve performance slightly, especially if you’re running multiple syncs or large jobs. For most users, starting with a mid-sized instance (like your 4 vCPU, 16 GB RAM) and tuning based on observed performance is recommended. If you notice your node is not under high load, increasing resources further is unlikely to help much with Hubspot sync speed specifically [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). ### 2. Unable to start other syncs while one is running: How to add/limit workers and improve concurrency? This is likely due to the number of available workers and how many concurrent syncs your Airbyte deployment is configured to allow. You can control concurrency and worker allocation with the following settings: - MAX_SYNC_WORKERS: This environment variable controls how many sync jobs can run concurrently. Increasing this value allows more syncs to run at the same time. - worker replicaCount: Increasing the number of worker replicas (pods) can also help handle more concurrent jobs, especially in Kubernetes deployments. - Resource limits per connector: You can set CPU and memory limits/requests for connector pods to ensure no single sync starves others of resources. Example configuration (Kubernetes, values.yaml):
Copy code
yaml worker:   replicaCount: 2 # Increase to allow more parallelism   extraEnv:     - name: MAX_SYNC_WORKERS       value: "5" # Set to desired concurrency     - name: MAX_CHECK_WORKERS       value: "5"
[Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits) If you’re running Airbyte via Docker Compose, you can set these environment variables in your
docker-compose.yaml
under the
worker
service. Note: There is no built-in way to limit the number of workers a specific connector uses; these settings apply globally. However, you can adjust resource requests/limits per connection to prevent one sync from monopolizing resources [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). --- Summary: - Increasing VM resources may help if you’re resource-constrained, but Hubspot sync speed is often limited by the API itself. - To run more syncs concurrently, increase
MAX_SYNC_WORKERS
and
worker replicaCount
. - Adjust connector resource limits to maintain high performance and avoid resource contention. If you need more detailed steps for your specific deployment method (Kubernetes, Docker Compose, etc.), let me know!
s
@kapa.ai Can you give me instructions for how to adjust my settings on an Airbyte installed with abctl on Debian? I'd like more detailed steps on how to adjust MAX_SYNC_WORKERS and replicaCount. Before implementing changes, though, I'd also like your recommendations on observing current performance while syncs are running. What terminal commands can I run and what results would suggest I should increase either CPU or RAM? Thank you.
k
A message from kapa.ai
Certainly! Here’s how to approach scaling and monitoring Airbyte installed with abctl on Debian, based strictly on the provided knowledge sources. --- ## 1. Observing Current Performance Before making changes, it’s important to monitor your system to determine if you are CPU or memory constrained. Recommended Observability Steps: - Check CPU and Memory Usage: - Use standard Linux commands to monitor resource usage while syncs are running:
Copy code
sh     top
or
Copy code
sh     htop
- Look for high CPU usage (close to 100% on all cores) or high memory usage (memory nearly full). - For more detailed memory usage:
Copy code
sh     free -h
- To check disk usage (less common bottleneck, but can be relevant):
Copy code
sh     df -h
- What to Look For: - If CPU usage is consistently high (all cores near 100%) or memory is nearly full and swap is being used, this suggests you may benefit from increasing resources. - If resource usage is low but jobs are still slow or stuck, the bottleneck may be elsewhere (e.g., connector/API limits) [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). --- ## 2. Adjusting MAX_SYNC_WORKERS and replicaCount ### MAX_SYNC_WORKERS - Purpose: Controls the maximum number of sync jobs that can run concurrently per worker. - How to Adjust: - Locate your Airbyte deployment’s environment variables. With abctl, this is typically managed via the
airbyte-env
file or similar configuration. - Add or modify the following line:
Copy code
sh     MAX_SYNC_WORKERS=5  # (Set to your desired concurrency)
- Restart Airbyte for the changes to take effect. ### replicaCount - Purpose: Controls the number of worker processes (pods/containers) running. More replicas allow more jobs to run in parallel. - How to Adjust: - For abctl-managed deployments, scaling is typically handled by increasing the number of worker processes in your configuration. - If you are not using Kubernetes, you may be limited to a single worker process per VM. In that case, scaling out would require deploying Airbyte on additional VMs. - If you are using Kubernetes, adjust the
replicaCount
in your `values.yaml`:
Copy code
yaml     worker:       replicaCount: 2  # Increase as needed
- Apply the changes and restart Airbyte. Note: The knowledge sources do not provide abctl-specific commands for scaling, but the environment variable approach for
MAX_SYNC_WORKERS
and the general concept of increasing worker processes apply [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits). --- ## 3. Recommendations - Start with monitoring: Only increase resources if you observe high CPU/memory usage. - Increase
MAX_SYNC_WORKERS
if you want to run more syncs in parallel and your system has available resources. - Increase
replicaCount
(if supported by your deployment method) to further scale out parallelism. - Monitor after changes: Continue to observe system metrics to ensure stability and performance. --- If you need abctl-specific commands for scaling workers and the documentation does not cover it, you may need to consult the [official Airbyte documentation](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale) or reach out to Airbyte support for abctl-specific scaling instructions, as the knowledge sources do not provide detailed abctl scaling steps.
s
@kapa.ai - Can you help me interpret if my performance resource results, based on the needs of airbyte self-managed? top - 144045 up 5 days, 11:54, 1 user, load average: 0.96, 1.03, 1.08 Tasks: 214 total, 1 running, 212 sleeping, 0 stopped, 1 zombie %Cpu(s): 23.5 us, 0.9 sy, 0.0 ni, 74.1 id, 0.1 wa, 0.0 hi, 1.3 si, 0.0 st MiB Mem : 16002.2 total, 6053.7 free, 7475.0 used, 2874.1 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 8527.2 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 504487 steveca+ 20 0 525448 316824 38576 S 85.4 1.9 41,34 python 1764 root 20 0 2269068 116476 54580 S 2.3 0.7 236:16.88 kubelet 2047 root 20 0 1526300 303364 65596 S 2.3 1.9 221:38.81 kube-apiserver 3608 steveca+ 20 0 1455484 239648 61604 S 2.0 1.5 143:33.55 temporal-server 2011 root 20 0 11.2g 86704 34256 S 1.7 0.5 131:05.70 etcd 504300 steveca+ 20 0 5377500 611176 37064 S 1.7 3.7 61:25.04 java 2066 root 20 0 1314196 120408 52084 S 1.3 0.7 93:22.44 kube-controller 1129 root 20 0 1438320 25568 8972 S 0.7 0.2 58:54.02 fluent-bit 2053 root 20 0 1293344 62984 37716 S 0.7 0.4 52:05.39 kube-scheduler 762312 70 20 0 181844 23532 19140 S 0.7 0.1 0:01.65 postgres 1481 root 20 0 3426064 92008 30720 S 0.3 0.6 73:39.05 containerd 3557 65532 20 0 1287016 56692 38872 S 0.3 0.3 11:12.46 coredns 3798 steveca+ 20 0 15.8g 1.6g 26068 S 0.3 10.4 30:31.22 java 3802 steveca+ 20 0 15.6g 556652 24448 S 0.3 3.4 39:06.62 java 3852 steveca+ 20 0 15.7g 678192 25820 S 0.3 4.1 14:44.71 java 504490 steveca+ 20 0 4988420 294040 25064 S 0.3 1.8 4:09.29 java 764389 70 20 0 180412 17384 14248 S 0.3 0.1 0:00.04 postgres 764569 cd_gcp01 20 0 9028 5104 2976 R 0.3 0.0 0:00.06 top ~$ free -h total used free shared buff/cache available Mem: 15Gi 7.3Gi 5.9Gi 70Mi 2.8Gi 8.3Gi Swap: 0B 0B 0B cd_gcp01@cd-airbyte-vm1:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.9G 0 7.9G 0% /dev tmpfs 1.6G 652K 1.6G 1% /run /dev/sda1 99G 25G 70G 26% / tmpfs 7.9G 0 7.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda15 124M 12M 113M 10% /boot/efi tmpfs 1.6G 0 1.6G 0% /run/user/1001
k
Sorry @Steve Caldwell, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
Sorry @Steve Caldwell, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
s
@kapa.ai Can you help me interpret if my performance resource results, based on the needs of airbyte self-managed? top - 144045 up 5 days, 11:54, 1 user, load average: 0.96, 1.03, 1.08 Tasks: 214 total, 1 running, 212 sleeping, 0 stopped, 1 zombie %Cpu(s): 23.5 us, 0.9 sy, 0.0 ni, 74.1 id, 0.1 wa, 0.0 hi, 1.3 si, 0.0 st MiB Mem : 16002.2 total, 6053.7 free, 7475.0 used, 2874.1 buff/cache MiB Swap: 0.0 total, 0.0 free, 0.0 used. 8527.2 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 504487 steveca+ 20 0 525448 316824 38576 S 85.4 1.9 41,34 python 1764 root 20 0 2269068 116476 54580 S 2.3 0.7 236:16.88 kubelet 2047 root 20 0 1526300 303364 65596 S 2.3 1.9 221:38.81 kube-apiserver 3608 steveca+ 20 0 1455484 239648 61604 S 2.0 1.5 143:33.55 temporal-server 2011 root 20 0 11.2g 86704 34256 S 1.7 0.5 131:05.70 etcd 504300 steveca+ 20 0 5377500 611176 37064 S 1.7 3.7 61:25.04 java 2066 root 20 0 1314196 120408 52084 S 1.3 0.7 93:22.44 kube-controller 1129 root 20 0 1438320 25568 8972 S 0.7 0.2 58:54.02 fluent-bit 2053 root 20 0 1293344 62984 37716 S 0.7 0.4 52:05.39 kube-scheduler 762312 70 20 0 181844 23532 19140 S 0.7 0.1 0:01.65 postgres 1481 root 20 0 3426064 92008 30720 S 0.3 0.6 73:39.05 containerd 3557 65532 20 0 1287016 56692 38872 S 0.3 0.3 11:12.46 coredns 3798 steveca+ 20 0 15.8g 1.6g 26068 S 0.3 10.4 30:31.22 java 3802 steveca+ 20 0 15.6g 556652 24448 S 0.3 3.4 39:06.62 java 3852 steveca+ 20 0 15.7g 678192 25820 S 0.3 4.1 14:44.71 java 504490 steveca+ 20 0 4988420 294040 25064 S 0.3 1.8 4:09.29 java 764389 70 20 0 180412 17384 14248 S 0.3 0.1 0:00.04 postgres 764569 cd_gcp01 20 0 9028 5104 2976 R 0.3 0.0 0:00.06 top ~$ free -h total used free shared buff/cache available Mem: 15Gi 7.3Gi 5.9Gi 70Mi 2.8Gi 8.3Gi Swap: 0B 0B 0B cd_gcp01@cd-airbyte-vm1:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 7.9G 0 7.9G 0% /dev tmpfs 1.6G 652K 1.6G 1% /run /dev/sda1 99G 25G 70G 26% / tmpfs 7.9G 0 7.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda15 124M 12M 113M 10% /boot/efi tmpfs 1.6G 0 1.6G 0% /run/user/1001
k
A message from kapa.ai
Based on your
top
,
free -h
, and
df -h
outputs, here’s how to interpret your Airbyte Self-Managed resource usage in the context of Airbyte’s scaling recommendations: --- ### CPU Usage - Your load average (~1.0) is well below your available 4 vCPUs, and
%Cpu(s): 74.1 id
means about 74% of CPU is idle. - The highest CPU-consuming process is a Python process at 85% of a single core, but overall, your system is not CPU-bound. - Interpretation: You are not currently CPU-constrained. Airbyte recommends starting with a mid-sized instance (like yours) and scaling up if you see high CPU usage across all cores during syncs. Since you have plenty of idle CPU, increasing CPU is not necessary at this time [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). --- ### Memory Usage - You have 16 GB RAM, with 5.9 GB free and 2.8 GB in buff/cache. No swap is in use. - The largest Java process is using about 1.6 GB (10.4% of RAM), and other Java processes are using less. - Interpretation: You are not memory-constrained. Airbyte recommends monitoring for high memory usage, especially by source workers (which can use a lot of memory for large tables). Since you have significant free and available memory, there is no immediate need to increase RAM [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). --- ### Disk Usage - You have 70 GB free on your main partition, which is well above the recommended minimum of 30 GB per node for Airbyte [Scaling Airbyte](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). - Interpretation: Disk space is not a concern. --- ### Summary & Recommendations - Current resources are sufficient for your current workload. You are not CPU, memory, or disk constrained. - If you want to run more concurrent syncs, you can safely increase
MAX_SYNC_WORKERS
and (if supported by your deployment)
replicaCount
, as your system has headroom. - Continue to monitor these metrics during peak sync activity. If you see CPU consistently near 100% or memory nearly full (with swap usage), then consider scaling up. For more details on scaling and what to monitor, see the official Airbyte documentation on [scaling and resource allocation](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale). If you need step-by-step instructions for changing worker settings, let me know your deployment method (Docker Compose, Kubernetes, etc.), as the knowledge sources do not provide abctl-specific steps.
s
@kapa.ai Yes, I need step by step instructions for changing worker settings on my abctl installed Airbyte setup, which I believe uses kubernetes pos managed by kind that is spun up via airbyte during the install.
k
A message from kapa.ai
Certainly! Here’s how you can adjust worker settings (such as
MAX_SYNC_WORKERS
and the number of worker replicas) for an Airbyte deployment installed with abctl (which uses a local Kubernetes cluster managed by kind): --- ## 1. Accessing the Kubernetes Cluster Airbyte installed with
abctl
runs inside a kind (Kubernetes-in-Docker) cluster. To interact with it, use
kubectl
with the kubeconfig provided by abctl:
Copy code
sh kubectl --kubeconfig ~/.airbyte/abctl/abctl.kubeconfig --namespace airbyte-abctl get pods
This command lets you interact with the Airbyte pods and resources directly ([abctl troubleshooting FAQ](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#faq)). --- ## 2. Adjusting
MAX_SYNC_WORKERS
-
MAX_SYNC_WORKERS
controls how many sync jobs each Airbyte Worker pod can run concurrently. - This is set as an environment variable in the worker deployment. Steps: 1. Edit the Airbyte Worker Deployment:
Copy code
sh    kubectl --kubeconfig ~/.airbyte/abctl/abctl.kubeconfig --namespace airbyte-abctl edit deployment airbyte-worker
2. In the editor that opens: - Find the
env
section under the container spec. - Add or modify the following entry:
Copy code
yaml      - name: MAX_SYNC_WORKERS        value: "5"   # (Set to your desired concurrency)
3. Save and exit the editor. Kubernetes will automatically restart the pods with the new environment variable. --- ## 3. Adjusting Worker Replicas - The number of worker pods (
replicaCount
) determines how many Airbyte Worker pods are running in parallel. Steps: 1. Edit the Airbyte Worker Deployment:
Copy code
sh    kubectl --kubeconfig ~/.airbyte/abctl/abctl.kubeconfig --namespace airbyte-abctl edit deployment airbyte-worker
2. At the top of the YAML, find the
spec.replicas
field and set it to your desired number:
Copy code
yaml    spec:      replicas: 2   # (Set to the number of worker pods you want)
3. Save and exit. Kubernetes will scale the worker pods accordingly. --- ## 4. Recommendations - After making these changes, monitor your system’s CPU and memory usage as described previously. - If you notice resource saturation, consider scaling your VM or adjusting the number of workers accordingly. --- Note: The knowledge sources confirm that you can use standard Kubernetes tools (
kubectl
) to interact with and modify your Airbyte deployment when installed via abctl and kind. However, they do not provide abctl-specific commands for scaling; all changes are made via Kubernetes manifests ([abctl troubleshooting FAQ](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#faq)). If you need to make more advanced changes (such as loading custom Docker images), refer to the [developing locally guide](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#using-abctl-for-airbyte-development). --- Let me know if you need more details or run into any issues!
s
@kapa.ai - do I need to stop all actively running syncs before making these changes?
k
A message from kapa.ai
The knowledge sources do not explicitly state that you must stop all actively running syncs before changing
MAX_SYNC_WORKERS
or the number of worker replicas in your Airbyte deployment. However, based on standard Kubernetes behavior, when you update a deployment (such as changing environment variables or replica count), Kubernetes will perform a rolling update: it will gradually terminate old pods and start new ones with the updated configuration. This means that any running syncs in pods that are terminated during the update will be interrupted and may fail. If you want to avoid interrupting active syncs, you may choose to wait until they complete before applying these changes. Otherwise, be aware that ongoing jobs may be stopped as the pods are replaced during the update process. The knowledge sources do not provide a specific Airbyte recommendation on this point, so this guidance is based on general Kubernetes deployment behavior [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#concurrent-sync-limits).
s
@kapa.ai - 1. How do I find my --namespace value? 2. I can access this VM as 2 different users. Does it matter which user installed abctl and airbyte on the VM, should I only use the same user to make changes to the worker settings? And how do I confirm which user installed everything?
k
A message from kapa.ai
Sorry @Steve Caldwell, I'm currently experiencing some technical difficulties. Please try again in a few minutes. If this issue persists, please reach out to the administrators of this Slack workspace.
s
@kapa.ai - 1. How do I find my --namespace value? 2. I can access this VM as 2 different users. Does it matter which user installed abctl and airbyte on the VM, should I only use the same user to make changes to the worker settings? And how do I confirm which user installed everything?
k
A message from kapa.ai
Sorry @Steve Caldwell, I'm currently experiencing some technical difficulties. Please try again in a few minutes. If this issue persists, please reach out to the administrators of this Slack workspace.
s
@kapa.ai - 1. How do I find my --namespace value? 2. I can access this VM as 2 different users. Does it matter which user installed abctl and airbyte on the VM, should I only use the same user to make changes to the worker settings? And how do I confirm which user installed everything?
k
A message from kapa.ai
Sorry @Steve Caldwell, I'm currently experiencing some technical difficulties. Please try again in a few minutes. If this issue persists, please reach out to the administrators of this Slack workspace.