I run abctl start every day on the same instance. ...
# ask-ai
s
I run abctl start every day on the same instance. My ec2 instance keeps growing storage space being taken but I am not sure what is doing it.
k
Based on the information in the knowledge sources, there are several common reasons why storage usage can grow over time on an Airbyte EC2 instance, even if you are running abctl start daily: 1. Workspace Directory Growth The directory
/var/lib/docker/volumes/airbyte_workspace/_data
is often the main source of growing storage usage. This directory stores job logs, temporary files, and other workspace data. If not managed, it can quickly consume large amounts of disk space, especially with frequent or large syncs, or if syncs fail and leave behind temporary data. Users have reported needing to manually purge this directory to reclaim space, but it can fill up again rapidly if the underlying cause isn't addressed. Airbyte version 0.45.5 and later allow you to control retention with the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
variable, which can help manage this growth by limiting how long job history is kept [Quickly run out of storage](https://discuss.airbyte.io/t/2417) [Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355). 2. Job Logs and Temporary Files Job logs and temporary files (such as
_airbyte_tmp_*
tables in destinations like Postgres) can accumulate, especially if syncs fail. These are not always cleaned up automatically after failed syncs, leading to disk usage growth. Manual cleanup or automated retention policies are necessary to prevent this [Source S3 - Failed attempts using up data space. Where is airbyte storing/caching data?](https://discuss.airbyte.io/t/2067). 3. Log Retention Settings If log retention is not configured, logs can accumulate indefinitely. You can set environment variables to control how long logs and job history are retained. For abctl deployments, add the following to your
values.yaml
to set retention to 7 days (for example):
Copy code
yaml    global:      env_vars:        TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7
This will help limit the growth of storage usage by automatically cleaning up old job history [Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355). 4. Manual Cleanup If storage fills up, you may need to manually delete files from the workspace or log directories. For example, you can exec into the relevant pod or container and remove old files [airbyte-minio-0 pod restarts because of storage space is full](https://github.com/airbytehq/airbyte/issues/44556). Recommendation: - Check the size of
/var/lib/docker/volumes/airbyte_workspace/_data
and log directories. - Set the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable in your abctl deployment to limit job history retention. - Consider scheduling regular cleanups or monitoring disk usage to avoid unexpected outages. If you continue to see unexplained growth, it may be due to a bug or memory leak, in which case restarting Airbyte containers or the instance can temporarily help, but you should also monitor for updates or fixes from the Airbyte team [Gradual increase in memory usage](https://discuss.airbyte.io/t/2249). If you need more specific guidance, please provide details about your Airbyte version and which directories are growing fastest.
s
@kapa.ai/var/lib/docker/volumes/airbyte_workspace/_data is only 11mb - it's not that
k
A message from kapa.ai
Thank you for clarifying that
/var/lib/docker/volumes/airbyte_workspace/_data
is only 11MB, so it is not the source of your storage growth. Based on the knowledge sources provided, if your Airbyte workspace directory is not consuming significant space, the most common alternative causes for storage growth in Airbyte deployments are: 1. MinIO Storage (if used): If your deployment uses MinIO (common in Kubernetes or some Docker setups), logs and job outputs are often stored there. Users have reported that MinIO storage can fill up quickly, especially with frequent or large syncs. The default MinIO storage location is often
/storage/airbyte-storage/job-logging/workspace
or similar inside the MinIO container. Cleaning up logs in this directory has resolved storage issues for several users. You can exec into the MinIO pod/container and delete files in these directories to free up space [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101) [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). 2. Docker System Data: If you are running Airbyte via Docker, sometimes Docker itself accumulates unused images, volumes, or containers, which can consume disk space. Running
docker system df
can help you identify if this is the case. However, this is not Airbyte-specific and is more about general Docker housekeeping. 3. Other Volumes or Directories: If neither the workspace nor MinIO is the culprit, you may want to check other Docker volumes or persistent storage locations used by Airbyte, such as those for logs or job outputs. If none of these directories are large, the knowledge sources do not provide enough information to identify other specific causes for unexplained storage growth in your scenario. You may need to use system tools like
ncdu
or
du
to scan your filesystem and pinpoint which directories are growing. If you discover that MinIO is the source, you can set log retention policies (e.g.,
TEMPORAL_HISTORY_RETENTION_IN_DAYS
) to help manage storage growth going forward [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). If you need more targeted help, please provide details about your deployment type (Docker Compose, Kubernetes, etc.) and whether you are using MinIO or another storage backend.
s
@kapa.ai I am running airbyte via abctl which I think uses helm and kubernetes in the background
k
A message from kapa.ai
If you are running Airbyte via
abctl
, you are correct that it uses Helm and Kubernetes in the background to deploy Airbyte. In this setup, the most common sources of unexpected storage growth are: 1. MinIO Persistent Volume By default, Airbyte on Kubernetes (including abctl deployments) uses MinIO for log and job output storage. The MinIO persistent volume can fill up quickly, especially if the default size (often 500Mi) is not increased or if logs are not regularly cleaned up. Users have reported that the MinIO pod can restart or jobs can hang when this storage fills up. The logs and job outputs are typically stored in directories like
/storage/airbyte-storage/job-logging/workspace
inside the MinIO pod. Manual cleanup of these directories has been a common workaround, but this is not automated by default [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812) [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101). 2. Increasing MinIO Storage You can increase the MinIO persistent volume size by setting the following in your `values.yaml`:
Copy code
yaml    minio:      storage:        volumeClaimValue: 2Gi
This helps prevent the volume from filling up too quickly, but does not address automatic cleanup [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). 3. Log Retention Policy To help manage storage, you can set the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable in your
values.yaml
to reduce how long job history is kept (e.g., 7 days):
Copy code
yaml    env_vars:      TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7
This can help limit the accumulation of old logs and job data [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). Summary: - abctl uses Helm and Kubernetes, and by default, MinIO is used for log storage. - The MinIO persistent volume is a likely source of storage growth. - You can increase the MinIO volume size and set log retention policies, but automatic cleanup of old logs is not enabled by default. - Manual cleanup of MinIO storage may be necessary if you run out of space. If you need to identify exactly what is consuming space, exec into the MinIO pod and check the
/storage/airbyte-storage/job-logging/workspace
directory. If you want to automate cleanup, you may need to implement your own scripts or retention policies, as the knowledge sources do not mention a built-in automated cleanup feature for MinIO logs in abctl deployments.
s
@kapa.ai ls: cannot access '/storage/airbyte-storage/job-logging/workspace': No such file or directory
k
A message from kapa.ai
If you see the error:
Copy code
ls: cannot access '/storage/airbyte-storage/job-logging/workspace': No such file or directory
when trying to list the contents of that directory inside your MinIO pod, it means that the directory does not exist at that path in your deployment. This could be due to: - The log storage path being different in your configuration. - MinIO not being used for log storage in your current setup. - The logs having already been cleaned up or never created due to configuration. The knowledge sources confirm that, in many Airbyte Kubernetes deployments, logs are typically stored in
/storage/airbyte-storage/job-logging/workspace
inside the MinIO pod, but this path can vary depending on your Helm values and Airbyte version. If the directory does not exist, you may want to: 1. Double-check your Airbyte Helm values or abctl configuration to confirm where logs are being stored. 2. Check other likely directories inside the MinIO pod, such as
/storage/airbyte-dev-logs/job-logging/workspace
or similar, as the exact path can differ between environments [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101). 3. If you are not using MinIO for log storage (for example, if you have switched to S3, GCS, or another backend), the logs may be stored elsewhere, or not available in the MinIO pod at all. If you are unable to locate the logs or the storage consuming space, the knowledge sources do not provide further details on alternative log locations for abctl-based deployments. You may need to review your deployment's storage configuration or use Kubernetes tools to inspect persistent volumes for large directories. If you provide your Helm values or abctl configuration, it may be possible to give more targeted advice.