I want to set different values for resources and limits.

________________________________
От: Andrew Otto <o...@wikimedia.org>
Отправлено: 13 марта 2023 г. 17:50
Кому: Evgeniy Lyutikov
Копия: user@flink.apache.org
Тема: Re: Kubernetes operator set container resources and limits

Hi,

> return to the same values from jobManager.resource FlinkDeployment manifest 
> parameter
I believe this is the correct way; using 
jobManager.resources<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2Fdocs%2Fcustom-resource%2Freference%2F%23jobmanagerspec&data=05%7C01%7Ceblyutikov%40avito.ru%7C7fbac6d919574aa2b24208db23b0c679%7Caf0e07b3b90b472392e63fab11dd5396%7C0%7C0%7C638143014385143446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7P4y2mYvJ%2FgQb7fnFUg71FNq6X%2BGDAcvgXQkfFB7zv8%3D&reserved=0>
 and 
taskManager.resources<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2Fdocs%2Fcustom-resource%2Freference%2F%23taskmanagerspec&data=05%7C01%7Ceblyutikov%40avito.ru%7C7fbac6d919574aa2b24208db23b0c679%7Caf0e07b3b90b472392e63fab11dd5396%7C0%7C0%7C638143014385143446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BDwtRhhMM%2FVDWq7KtGlbx4fl%2F901CGrnqus9LUVozko%3D&reserved=0>
 in the 
FlinkDeployment<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnightlies.apache.org%2Fflink%2Fflink-kubernetes-operator-docs-main%2Fdocs%2Fcustom-resource%2Freference%2F%23flinkdeploymentspec&data=05%7C01%7Ceblyutikov%40avito.ru%7C7fbac6d919574aa2b24208db23b0c679%7Caf0e07b3b90b472392e63fab11dd5396%7C0%7C0%7C638143014385143446%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SMEzhiCBAYbZ%2BSWKocyPy51hsew2dFW6vFpE%2BqhXVXg%3D&reserved=0>.

Is there a reason you can't change the resources values there?  I don't think 
you should need to do so with podTemplate.



On Mon, Mar 13, 2023 at 9:56 AM Evgeniy Lyutikov 
<eblyuti...@avito.ru<mailto:eblyuti...@avito.ru>> wrote:

Hi all
Is there any way to specify different values for resources and limits for a 
jobmanager container?
The problem is that sometimes kubernetes kills the jobmanager container because 
it exceeds the memory consumption.


Last State:     Terminated
  Reason:       OOMKilled
  Exit Code:    137
  Started:      Tue, 07 Mar 2023 18:06:01 +0700
  Finished:     Fri, 10 Mar 2023 23:20:54 +0700


What I tried to do:
1. added the 'jobmanager.memory.process.size' parameter to flinkConfiguration 
with a value less than the allocated resources for the container, but after 
launch, the value of this parameter is set to the amount of memory allocated to 
the container.
2. I tried to set resources and limits through the jobmanager pod template, but 
for the running container, the values again return to the same values from 
jobManager.resource FlinkDeployment manifest parameter

Kubernetes operator 1.2.0 and Flink 1.14.4



________________________________
“This message contains confidential information/commercial secret. If you are 
not the intended addressee of this message you may not copy, save, print or 
forward it to any third party and you are kindly requested to destroy this 
message and notify the sender thereof by email.
Данное сообщение содержит конфиденциальную информацию/информацию, являющуюся 
коммерческой тайной. Если Вы не являетесь надлежащим адресатом данного 
сообщения, Вы не вправе копировать, сохранять, печатать или пересылать его 
каким либо иным лицам. Просьба уничтожить данное сообщение и уведомить об этом 
отправителя электронным письмом.”

Reply via email to