Lambda 限制
适用标准的 AWS Lambda 配额(见这里),尤其是:
🌐 The standard AWS Lambda quotas apply (see here), most notably:
- 并发:默认情况下,每个区域每个账户的最大并发执行数为1000次。对于新账户和企业内的用户,此限制可能更低。
- 存储:可配置,最多限10GB
- 内存:可配置,最多限10GB
- 执行限制:可配置,最长 15 分钟
升级你的并发限制
🌐 Upgrading your concurrency limit
要扩展你的渲染,你应在 https://console.aws.amazon.com/servicequotas/home 下申请配额增加,或使用 Remotion CLI:
🌐 For scaling your renders, you should request a quota increase under https://console.aws.amazon.com/servicequotas/home or using the Remotion CLI:
npx remotion lambda quotas increase这仅适用于 AWS Root 账户,而不适用于组织的子账户。你仍然可以通过控制台申请增加。
🌐 This only works for AWS Root accounts, not the children of an organization. You can still request an increase via the console.
如果 AWS 询问你原因
🌐 If AWS asks you for the reason
AWS 可能会问你为什么想要提高并发限制。他们通常会向你发送这份问卷。
🌐 AWS might ask you why you want to increase your concurrency limit. Commonly they send you this questionnaire.
如果你仍希望提高限制,请提供以下信息:
- 此应用的主要 Lambda 函数 ARN
- 每个函数预期的每秒事务量
- 每个函数的预期执行时长
- 每个函数的调用方式
- 主要函数交互的服务或资源
- 高需求时间段,以显示接近现有并发限制的情况。
你可以这样回答它:
🌐 You can answer it as follows:
1.这些函数是 [function-names]
你可以使用 npx remotion lambda functions ls -q 获取 Remotion Lambda 函数的列表。
🌐 You can get a list of Remotion Lambda functions using npx remotion lambda functions ls -q.
- 每秒的交易次数大约是 [请提供大致估计]
- 持续时间通常约为 30 秒到 1 分钟。
- 在开发阶段,它将通过 Remotion CLI 调用,而在生产环境中通过 NodeJS 应用调用。
- 使用 FFmpeg 和 Puppeteer。npm 包名为 @remotion/lambda。
- 该过程有一个渲染策略,即将渲染拆分到多个线程中,以加快结果。这就是为什么需要增加配额的原因,如此处所述:https://www.remotion.dev/lambda
该响应以前已成功用于获得并发限制的增加。
🌐 This response has previously been successfully used to obtain an increase of the concurrency limit.
另请参阅
🌐 See also