In Kubernetes (and Airbyte deployments on Kubernetes), the difference between "request" and "limit" for resources like memory and CPU is as follows: -
Request: This is the minimum amount of resource (CPU or memory) that Kubernetes guarantees will be available to the container. The scheduler uses this value to decide on which node to place the pod. If a node does not have enough unallocated resources to satisfy the request, the pod will not be scheduled there. -
Limit: This is the maximum amount of resource the container is allowed to use. If the container tries to use more than the limit, it may be throttled (for CPU) or killed (for memory, resulting in an OOMKilled error). In practice, if a pod only ever uses up to its request and never approaches its limit, it means the application is not demanding more resources than the minimum guaranteed. However, if it tries to exceed the limit, Kubernetes will enforce the cap, which for memory means the pod will be terminated. This behavior is confirmed in Airbyte documentation and community discussions. For example, you can set these values in Airbyte using environment variables like
JOB_MAIN_CONTAINER_MEMORY_REQUEST
and
JOB_MAIN_CONTAINER_MEMORY_LIMIT
. The units and behavior follow standard Kubernetes conventions: the request is the minimum guaranteed, and the limit is the enforced maximum. If the pod exceeds the memory limit, it will be killed by Kubernetes, as seen in user reports and official responses in the Airbyte community and GitHub issues [Forum: How to specify CPU,MEMORY limit in .env](
https://discuss.airbyte.io/t/1675), [Forum: How memory request and limit works under the hood](
https://discuss.airbyte.io/t/2214), [Forum: After Upgrading Airbyte to v0.34.4-alpha get error](
https://discuss.airbyte.io/t/861). If your pods are only using up to the request and not the limit, it simply means your workload is not demanding more resources than the minimum guaranteed. If you want to allow your pods to use more resources when available, you can set a higher limit, but the actual usage will depend on the workload's needs.