[Lambda] Memory Issue: Fail Faster
还没有人认领这个 Issue。
评估
调研方向
尚未确定任何仓库文件、测试或实现入口;请先查阅 AWS Lambda 文档中关于 ARM 和 x86 上 Python 托管运行时及 OCI-image 运行时内存耗尽行为的说明。定义可配置的 fail-fast 模式将如何区分内存不足与有意的内存使用,并将现有的 timeout 行为作为比较基准。
由索引模型根据 Issue 内容生成。
描述
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request
When insufficient memory is allocated to an AWS Lambda function, the function executes until it times out, even though it cannot complete successfully. This results in unnecessary billed duration. A configurable option to fail fast or fail directly when memory is insufficient would be beneficial.
Which service(s) is this request for?
AWS Lambda
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
When a Lambda function lacks sufficient memory, it continues running until the timeout duration is reached. This leads to wasted execution time and higher costs, as users are billed for the full timeout duration. Detecting and stopping such executions earlier would save time and reduce costs.
However, this behavior may not be relevant in all cases. For example, some developers might intentionally use all available memory for caching purposes, or runtimes like Java JVM could utilize all memory without necessarily indicating a failure. For Python runtimes, however, insufficient memory often results in this timeout behavior. Providing an option to configure the default behavior—either fail fast or continue until timeout—would allow developers to tailor Lambda execution to their specific use case.
Are you currently working around this issue?
The current workaround involves setting shorter timeout durations or waiting for the execution to complete to identify memory-related issues. Both approaches are inefficient and do not address the root problem.
Additional context
This issue has been observed with Python runtimes (both managed and OCI-image-based) on ARM and x86 architectures.
Attachments
N/A
- 主要语言
- 没有语言数据
- 星标
- 196
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/aws-lambda-roadmap 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
aws/aws-lambda-roadmap#101 ·
-
难度 5/5 一周以上 新手友好度 35/100
aws/aws-lambda-roadmap#100 ·
-
难度 5/5 一周以上 新手友好度 28/100
aws/aws-lambda-roadmap#97 · 1 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
aws/aws-lambda-roadmap#96 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
aws/aws-lambda-roadmap#95 · 1 条评论 · 1 个 reaction ·
查看 aws/aws-lambda-roadmap 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 84/100
-
level/task module/gcp type/bug
难度 2/5 1-3 小时 新手友好度 85/100
-
bug needs-triage service/elbv2
难度 2/5 1-3 小时 新手友好度 82/100
hashicorp/terraform-provider-aws#50100 · 1 条评论 ·