Hello All, I am deploying my python app using Fli...
# troubleshooting
n
Hello All, I am deploying my python app using Flink Kubernetes Operator on AWS EKS. Currently I have given Flink EKS NodeGroup 4 instances (
m6i.large
2vCPUs and 7.61GiB Memory each node) below is my Job Manager and Task Manager config based on
1
slot and
6
parallelism
Copy code
jobManager:
    resource:
      memory: "1024m"
      cpu: .80
  taskManager:
    resource:
      memory: "3500m"
      cpu: .80
I noticed frequent task managers failures, in last 11hr I can see total 23
taskManager
pods failed. Can someone help me understand the issue with constant memory buildup? why this is not getting cleared by it's own? Also some time pods are not getting terminated just because of memory, due to this different pattern I am not able to conclude the root cause as low memory... Attached related monitoring snippets of the terminated pods.
UPDATE I have changed the memory and CPU allocation logic as below
Copy code
taskmanager.numberOfTaskSlots: "1"
...
  jobManager:
    resource:
      memory: "1024m"
      cpu: .80
  taskManager:
    resource:
      memory: "6500m"
      cpu: 1.6
. . .
  parallelism: 3
After this, now TM failure rate has been reduced to around 1 failure in 7-8+hr but continues memory buildup still remains the same... any help on this would be much appreciated 🙂
p
How long do you checkpoint? Is there a chance of memory build up be coming from some custom code?
n
@Pedro Mázala this is my app config... let me know if anything needs to be change here to tackle this memory build-up issue!
p
By a quick look on your config I don't see any big issue. You're checkpointing every 300s, and by your graph memory builds up with time. So nothing related to the config. My second shot would be checking the code. Perhaps a leak in one of the packages you're using for this deployment. Is this memory leak happening only on production or also locally?