flyte: [BUG] Ephemeral Storage request is not respected
Describe the bug
When submitting a task with ephemeral storage request set (e.g. to 100Gi) this is taken to the task definition, also see first attached screenshot.
The Kubernetes pod created from this request will nevertheless only set a limit of 20Mi for the ephemeral storage: see second attached screenshot.
Expected behavior
The Kubernetes pod should have a limit on ephemeral storage equal to the requested amount of storage.
Additional context to reproduce
- Issue occurs on Flyte 1.10.7
- The issue does not occur on Flyte 1.10.0
- Run the following example code
from flytekit import Resources, task, workflow
@task(
requests=Resources(ephemeral_storage="100Gi"),
limits=Resources(ephemeral_storage="100Gi"),
)
def hello_world(name: str) -> str:
"""This is a Flyte task that prints 'Hello, World!
Returns:
str: "Hello, World!"
"""
return f"Hello, {name}!"
@workflow
def hello_wf(your_name: str) -> str:
"""This is a Flyte workflow that runs the task!
Returns:
str: "Hello, World!"
"""
return hello_world(name=your_name)
Screenshots
Are you sure this issue hasn’t been raised already?
- Yes
Have you read the Code of Conduct?
- Yes
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (13 by maintainers)
🤖
Based on the changes made between Flyte 1.10.0 and Flyte 1.10.7, it seems like there has been a shift in how ephemeral storage is handled. Specifically, the term
Storagewas replaced withEphemeral Storagein the Helm Chart as per this pull request. Additionally, the option to use storage as a task resource was removed as per this pull request.These changes could potentially be the reason why your ephemeral storage request is not being respected. However, without more information, it’s hard to say for certain.
To help troubleshoot this issue, could you please provide the following information:
This information will help us understand the context in which the task is being executed and why the ephemeral storage request might not be respected.
In the meantime, you might want to consider downgrading to Flyte 1.10.0 if that version was working as expected for your use case. Please note that this is just a workaround and not a long-term solution. We’ll continue to investigate this issue to find a proper fix.
For more information about resource configuration in Flyte, you can refer to the Flyte documentation.
Sources
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Hey @davidmirror-ops,
yes, we do not see this issue anymore. It is fixed in our environment.
Hi @Future-Outlier,
okay, I will then request help in the Slack channel then