<@U04S8PLJWMT> the server pods in my eks cluster ...
# ask-ai
i
@kapa.ai the server pods in my eks cluster are getting evicted because of disk pressure. What could be taking so much space.? And whats the best practise to handle this ?
k
Disk pressure and pod eviction in Airbyte EKS clusters are most commonly caused by log files and workspace data accumulating over time. Here’s what could be taking up so much space and best practices to handle it: ### What Could Be Taking Up Space? 1. Log Files: Airbyte generates a significant amount of logs, especially during frequent or large syncs. These logs are stored either on persistent volumes (e.g., MinIO, local disk, or S3) and can quickly fill up disk space if not managed. For example, users have reported running out of disk space due to logs stored in MinIO or in the Airbyte workspace directory on the host machine. By default, Airbyte schedules periodic jobs to delete logs, but the default retention may not be aggressive enough for high-frequency workloads. You can adjust log retention using environment variables like
MINIMUM_WORKSPACE_RETENTION_DAYS
,
MAXIMUM_WORKSPACE_RETENTION_DAYS
, and
MAXIMUM_WORKSPACE_SIZE_MB
to control how long logs are kept and the maximum allowed workspace size before sweeping occurs. The default workspace size limit is 5GB, but this can be increased or decreased as needed. Logs are deleted every month or when their size exceeds 5GB by default, but you can tune these settings for your needs [Airbyte Rotation Logs](https://discuss.airbyte.io/t/332). 2. Workspace Data: The
/var/lib/docker/volumes/airbyte_workspace/_data
directory (or equivalent persistent volume in Kubernetes) can grow rapidly, especially with frequent syncs or large data volumes. This directory stores temporary files, logs, and other job artifacts. If not purged regularly, it can consume all available disk space [Quickly run out of storage](https://discuss.airbyte.io/t/2417). 3. Connector Images: Airbyte connector images are typically around 300MB each. If you have many connectors or frequent updates, the cumulative image size can also contribute to disk usage [Scaling Airbyte - What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte#what-to-scale). ### Best Practices to Handle Disk Pressure - Increase Disk Space: Airbyte recommends allocating a minimum of 30GB of disk space per node, but more may be needed depending on your workload. Over-provisioning is safer, especially for high-frequency or large-volume syncs [Scaling Airbyte - What To Scale](https://docs.airbyte.com/platform/next/operator-guides/scaling-airbyte#what-to-scale). - Tune Log Retention: Adjust the log retention environment variables to sweep logs more aggressively: -
MINIMUM_WORKSPACE_RETENTION_DAYS
-
MAXIMUM_WORKSPACE_RETENTION_DAYS
-
MAXIMUM_WORKSPACE_SIZE_MB
This helps ensure that logs and temporary files do not accumulate beyond your storage capacity [Airbyte Rotation Logs](https://discuss.airbyte.io/t/332). - Regularly Clean Up MinIO or Persistent Volumes: If using MinIO for log storage, periodically delete old logs from
/storage/airbyte-dev-logs/job-logging/workspace/
inside the MinIO pod [How to clean up airbyte-minio](https://discuss.airbyte.io/t/3101). - Monitor and Automate Cleanup: Use Kubernetes jobs or external scripts to monitor disk usage and trigger cleanup if thresholds are exceeded. Airbyte’s built-in pod-sweeper can help, but you may need to adjust its frequency or supplement it with custom scripts for high-volume environments [Destination, orchestrator, and source pod all stuck in terminating](https://discuss.airbyte.io/t/2545). - Turn Off DEBUG Logs: For production workloads, disable DEBUG logs to reduce log volume and avoid overloading the server pod [Scaling Airbyte After Installation - DEBUG Logs](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#debug-logs). By following these practices, you can better manage disk usage and prevent pod evictions due to disk pressure in your Airbyte EKS cluster.