Aman Raj
10/25/2023, 10:14 AMkapa.ai
10/25/2023, 10:14 AMJOB_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).