:wave: Hello Team, I'm seeing quite often that air...
# replication-troubleshooting
m
👋 Hello Team, I'm seeing quite often that airbyte worker & server pods are holding up memory for quite a long, even if no syncs are running. It continuously grows with time. It releases after I restart the pods, but this is not the perfect solution. Can someone give some insights on • how airbyte worker/server pods manage memory & how can I make sure that they release it after syncs are completed. • Is there any K8S configurations that I can add in
.env
file? Airbyte version: 0.40.6
m
Did you try to add resource limits into the worker and server? This happened after upgrade or it is the first version you’re running?
m
1. I'ven't done resource binding yet, as I just wanted to figure out the root cause. It shouldn't hold the memory if no syncs are running. Resource binding is a good option to restrict the worker / server to use unlimited resources. a. Do worker/server pods take some time (if so how much?) to free up resources after syncs are completed or failed? b. Mostly, it has been observed if worker pod doesn't able to pass the syncs. They kept on failing and hence worker isn't able to release the resources. 2. This is happening at the first version (0.40.6). I haven't done upgrade. Is there any way (configuration setting) I could force worker to release the resources after some time? Thanks 🙂!
u
This is quite strange. For me it isn't consuming much resources. I'm running 0.40.26, any possibility to update to 0.40.26~29? ![](

https://airbyte7538.zendesk.com/attachments/token/TZKP4xIVOsutlMDFNoE1snyZp/?name=image.pngâ–¾

)
m
Hey @Marcos Marx (Airbyte) thanks for your reply. Upgrading its version might not be possible at the moment. Anyhow, we are using the following configuration. Everything else is default in the
.env
file, except for the following 2-3 variables.
Copy code
SUBMITTER_NUM_THREADS=200
MAX_SYNC_WORKERS=100

# Launch a separate pod to orchestrate sync steps
# Default was set to true. Faced some issue and changed it.
CONTAINER_ORCHESTRATOR_ENABLED=false
Can you please let me know if the above two variable have any impact on that? Currently used .env file content
Copy code
AIRBYTE_VERSION=0.40.6
#  Airbyte Internal Database, see https://docs.airbyte.io/operator-guides/configuring-airbyte-db
DATABASE_HOST=db-host
DATABASE_PORT=5432
DATABASE_DB=airbyte
# translate manually DATABASE_URL=jdbc:postgresql://${DATABASE_HOST}:${DATABASE_PORT/${DATABASE_DB}
DATABASE_URL=jdbc:postgresql://db-host:5432/airbyte
JOBS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION=0.29.15.001
CONFIGS_DATABASE_MINIMUM_FLYWAY_MIGRATION_VERSION=0.35.15.001

# When using the airbyte-db via default docker image:
CONFIG_ROOT=/configs
DATA_DOCKER_MOUNT=airbyte_data
DB_DOCKER_MOUNT=airbyte_db

RUN_DATABASE_MIGRATION_ON_STARTUP=true
AWS_ACCESS_KEY_ID=<>
AWS_SECRET_ACCESS_KEY=<>

# Temporal.io worker configuration
TEMPORAL_HOST=airbyte-temporal-svc:7233
TEMPORAL_WORKER_PORTS=9001,9002,9003,9004,9005,9006,9007,9008,9009,9010,9011,9012,9013,9014,9015,9016,9017,9018,9019,9020,9021,9022,9023,9024,9025,9026,9027,9028,9029,9030,9031,9032,9033,9034,9035,9036,9037,9038,9039,9040

# Workspace storage for running jobs (logs, etc)
WORKSPACE_ROOT=/workspace
WORKSPACE_DOCKER_MOUNT=airbyte_workspace

LOCAL_ROOT=/tmp/airbyte_local

# Miscellaneous
TRACKING_STRATEGY=segment
WEBAPP_URL=airbyte-webapp-svc:80
API_URL=/api/v1/
INTERNAL_API_HOST=airbyte-server-svc:8001

WORKER_ENVIRONMENT=kubernetes
LOG_LEVEL=INFO

# S3/Minio Log Configuration
S3_LOG_BUCKET=cdpaas-airbyte-dev-logs
S3_LOG_BUCKET_REGION=us-east-2
S3_MINIO_ENDPOINT=
S3_PATH_STYLE_ACCESS=

# GCS Log Configuration
GCS_LOG_BUCKET=

# State Storage Configuration
STATE_STORAGE_MINIO_BUCKET_NAME=airbyte-dev-logs
STATE_STORAGE_MINIO_ENDPOINT=http://airbyte-minio-svc:9000

# Docker Resource Limits
JOB_MAIN_CONTAINER_CPU_REQUEST=
JOB_MAIN_CONTAINER_CPU_LIMIT=
JOB_MAIN_CONTAINER_MEMORY_REQUEST=
JOB_MAIN_CONTAINER_MEMORY_LIMIT=

NORMALIZATION_JOB_MAIN_CONTAINER_MEMORY_LIMIT=
NORMALIZATION_JOB_MAIN_CONTAINER_MEMORY_REQUEST=
NORMALIZATION_JOB_MAIN_CONTAINER_CPU_LIMIT=
NORMALIZATION_JOB_MAIN_CONTAINER_CPU_REQUEST=

# Worker pod tolerations, annotations and node selectors
JOB_KUBE_ANNOTATIONS=
JOB_KUBE_TOLERATIONS=key=dedicated,operator=Equal,effect=NoSchedule,value=airbyte
JOB_KUBE_NODE_SELECTORS=dedicated=airbyte
# Job image pull policy
JOB_KUBE_MAIN_CONTAINER_IMAGE_PULL_POLICY=

# Launch a separate pod to orchestrate sync steps
# CONTAINER_ORCHESTRATOR_ENABLED=true
# Updated the following value
CONTAINER_ORCHESTRATOR_ENABLED=false
CONTAINER_ORCHESTRATOR_IMAGE=

# Open Telemetry Configuration
METRIC_CLIENT=
OTEL_COLLECTOR_ENDPOINT=
WORKERS_MICRONAUT_ENVIRONMENTS=

# Temporal Activity configuration
ACTIVITY_MAX_ATTEMPT=
ACTIVITY_INITIAL_DELAY_BETWEEN_ATTEMPTS_SECONDS=
ACTIVITY_MAX_DELAY_BETWEEN_ATTEMPTS_SECONDS=
WORKFLOW_FAILURE_RESTART_DELAY_SECONDS=

USE_STREAM_CAPABLE_STATE=true

# Maximum total simultaneous jobs across all worker nodes

SUBMITTER_NUM_THREADS=200
MAX_SYNC_WORKERS=100
u
Hello Muhammad, a new version was released (0.41.0) can you try to upgrade? There is for docker and helm!
m
@Muhammad Imtiaz I'm facing the same issue .. Did you overcome it?