prehistoric-florist-79267
06/14/2024, 6:56 AMtask_resource_defaults:
task_resources:
defaults:
cpu: 250m
memory: 2Gi
limits:
cpu: 5000m
memory: 64Gi
Here’s what I’ve done so far:
• Set a low default memory request and a high memory limit in task_resource_defaults.
• Observed that changing the defaults in task_resource_defaults affects the memory available to the pods.
• Observed that changing the requests and limits in the task decorator (inside or outside the limits of task_resource_defaults) affects nothing.
I have been checking the memory available for the pod with kubectl describe pod/node where it always shows the requests and limist as the exact same as the defaults in task_resource_defaults. Also, when the memory usage of the pod goes over the limit I get OOMKilled.
For some reason the Flyte task decorator seem to be ignored, and only the defaults are applied. Could anyone help me understand what might be missing or misconfigured? Any insights or suggestions would be greatly appreciated!glamorous-carpet-83516
06/14/2024, 8:31 AMprehistoric-florist-79267
06/14/2024, 8:44 AMprehistoric-florist-79267
06/14/2024, 8:47 AMglamorous-carpet-83516
06/14/2024, 8:50 AMprehistoric-florist-79267
06/14/2024, 8:50 AMglamorous-carpet-83516
06/14/2024, 8:50 AMprehistoric-florist-79267
06/14/2024, 9:35 AMaverage-finland-92144
06/14/2024, 3:37 PMwith_overrides
?
https://docs.flyte.org/en/latest/user_guide/productionizing/customizing_task_resources.html#using-with-overridesprehistoric-florist-79267
06/17/2024, 7:39 AMprehistoric-florist-79267
06/17/2024, 7:42 AM.with_overrides(limits=Resources(cpu="6", mem="40Gi"))
and it allocates that to the podaverage-finland-92144
06/17/2024, 12:15 PMprehistoric-florist-79267
06/17/2024, 12:19 PM.with_overrides
it correctly modifies the memory withing the limits specified in task_resources limits. It clearly cannot go higher than the limit. The weird part is why are the task decorator requests and limits not working