<#6293 [Feat-v2] Enable memory increase on OOM fai...
# flyte-github
c
#6293 [Feat-v2] Enable memory increase on OOM failure Pull request opened by Mecoli1219 ## Tracking issue #2234 ## Why are the changes needed? This is not completed yet. ## What changes were proposed in this pull request? • FlyteIDL • Follow @freezing-airport-6809 suggestion, update the RetryStrategy IDL • FlyteAdmin • Update the flyteadmin to handle launching execution with adjusted resource • Handle both node's Retry (store
with_overrides
value) and task's Retry (task specified RetryStrategy) • Add new unit tests • FlytePropeller • Store the historical OOM failures number • Create
OnOOMConf
for
taskExecutionMetadata
so that FlytePlugins can use it. • Add new unit tests • FlytePlugins • Update the logistic to compute the updated resource when OOM • Implement the multiplication of
Resource.Quantity
(@b05702117 is working on it) • Add new unit tests ## How was this patch tested? I have manually tested it with the debugger to ensure that it is executed as expected, but we will need to create more unit tests later. ### Labels • added: For new features. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs Previous version PR: #6263 ## Docs link ### Summary by Bito This pull request enhances Flyte's OOM handling by implementing dynamic memory scaling during retries. It updates FlyteIDL definitions across multiple languages to incorporate a new RetryOnOOM structure with scaling factors and limits, while adding logic in FlyteAdmin to ensure adjusted memory limits don't exceed platform constraints. Unit tests added: True Estimated effort to review (1-5, lower is better): 5 flyteorg/flyte