Skip to content

[Kafka Connect] Behaviour on limited resource in k8s #10435

Answered by scholzj
vladislav-bakanov asked this question in Q&A
Discussion options

You must be logged in to vote

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).

What will happen if I specify limits and it will reach out the limit? PODs will be restarted, right?

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vladislav-bakanov
Comment options

Answer selected by vladislav-bakanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants