AWSLambda内存与CPU配置
在 AWS lambda 环境中,我们只能指定内存配置。是否有任何关于给定内存配置的 CPU 配置的文档?
例如,
ApiLambda:
Type: AWS::Serverless::Function
Properties:
Description: "This function handles the example"
CodeUri: "./app/"
Handler: "app.handle_request"
MemorySize: 128
Timeout: 60
Runtime: python3.7
我试图找到MemorySize特定数量内核的最小值。有什么方法可以知道 MemorySize 的边界,在#Cores没有暴力破解的情况下会发生变化MemorySize吗?
参考:
https://aws.amazon.com/about-aws/whats-new/2020/12/aws-lambda-supports-10gb-memory-6-vcpu-cores-lambda-functions/
https://docs.aws。 amazon.com/lambda/latest/dg/configuration-memory.html
回答
官方门槛是:
- 1 个 vCPU 用于 1,769 MB(参考)
- 10,240 MB 的 6 个 vCPU(参考)
最近的研究对中间发生的事情得出了以下结论: