when i was going through docker compose of airbyte...
# replication-ask-ai
a
when i was going through docker compose of airbyte i found these environment variables in server and worker JOB_MAIN_CONTAINER_CPU_LIMIT= JOB_MAIN_CONTAINER_CPU_REQUEST= JOB_MAIN_CONTAINER_MEMORY_LIMIT= JOB_MAIN_CONTAINER_MEMORY_REQUEST= why server and worker both need these variables, worker container launches the sync jobs container so it requires to set the resources of sync jobs container, but why server need these variables to be declared.?
k
The
JOB_MAIN_CONTAINER_CPU_LIMIT
,
JOB_MAIN_CONTAINER_CPU_REQUEST
,
JOB_MAIN_CONTAINER_MEMORY_LIMIT
, and
JOB_MAIN_CONTAINER_MEMORY_REQUEST
environment variables are used to set the resource limits and requests for the main job containers in Airbyte. While it's true that the worker container is responsible for launching the sync jobs, the server also needs these variables because it's responsible for orchestrating the overall operation of Airbyte. The server needs to know the resource limits and requests to properly manage and allocate resources for the various tasks it oversees. However, based on the information provided in the extracts, it's not explicitly stated why these variables are needed in both the server and worker. It's possible that these settings are used in both components for consistency, or there may be other internal reasons related to how Airbyte manages resources. For more detailed information on how to configure these variables, you can refer to the [Airbyte Configuration Documentation](https://docs.airbyte.com/operator-guides/configuring-airbyte).