[Kafka Connect] Behaviour on limited resource in k8s #10435
-
Hi Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you specified only the memory request, it means that in general the limit is unlimited. So it can grow as long as there is free memory and Java in general will tend to use it. Ideally, you should set both the limit and request to the same value (or if you set only the limit, it will also be used as a request).
The Pod will be killed in such a case. But keep in mind that Java has awareness of the available memory and just because now you see it consuming 20Gi does not mean it would run out of memory if you set the limit to 8Gi. |
Beta Was this translation helpful? Give feedback.
If you specified only the memory request, it means that in general the limit is unlimited. So it can grow as long as there is free memory and Java in general will tend to use it. Ideally, you should set both the limit and request to the same value (or if you set only the limit, it will also be used as a request).
The Pod will be killed in such a case. But keep in mind that Java has awareness of the available memory and just because now you see it consuming 20Gi does not mean it would run out of memory if you set the limit to 8Gi.