🎥 Make videos programmatically with React
new page: lambda limits
Jonny Burgere370099f5046
diff --git a/packages/docs/docs/lambda/limits.md b/packages/docs/docs/lambda/limits.mdnew file mode 100644index 0000000000..d3dfc8aff7--- /dev/null+++ b/packages/docs/docs/lambda/limits.md@@ -0,0 +1,54 @@+---+sidebar_label: Limits+title: Lambda Limits+slug: /lambda/limits+---++The standard AWS Lambda quotas apply ([see here](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html)), most notably:++- [**Concurrency**](/docs/lambda/concurrency): By default, the maximum concurrent executions per region per account is 1000 executions. This limit might be lower for new accounts and users within an enterprise.+- **Burst concurrency**: AWS may limit your ability to spawn a lot Lambda functions in a short amount of time. By default, this is 3000 functions at a time.+- [**Storage**](/docs/lambda/disk-size): Configurable, limited to 10GB at most+- [**RAM**](/docs/lambda/runtime#memory-size): Configurable, limited to 10GB at most+- [**Execution limit**](/docs/lambda/runtime#timeout): Configurable, at most 15 minutes++## Upgrading your concurrency limit++For scaling your renders, you should request a quota increase under [`https://console.aws.amazon.com/servicequotas/home`](https://console.aws.amazon.com/servicequotas/home) or using the [Remotion CLI](/docs/lambda/cli/quotas):++```+npx remotion lambda quotas increase+```++This only works for AWS Root accounts, not the children of an organization. You can still request an increase via the console.++## If AWS asks you for the reason++AWS might ask you why you want to increase your concurrency limit. Commonly they send you this questionnaire.++> If you would still like a higher limit, please provide the following:+>+> 1. The main lambda functions ARNs of this application+> 2. Expected transactions per second per function+> 3. Expected duration per function+> 4. How is each function invoked+> 5. What services or resources do primary functions interact with+> 6. Time periods of high demand that demonstrate approaching the provided concurrency limit.++You can answer it as follows:++> 1. The functions are \[function-names\]++You can get a list of Remotion Lambda functions using `npx remotion lambda functions ls -q`.++> 2. The transactions per second are very low. [Provide a rough estimation]+> 3. The duration is usually around 30 seconds to 1 minute.+> 4. In development phase it will invoqued via the Remotion CLI, and in production via a NodeJS app.+> 5. FFmpeg and Puppeteer. The npm package is called @remotion/lambda.+> 6. The process has a rendering strategy of splitting the rendering in multiple threads, to speed up the result. That is the reason why the quota increase is needed, as explained here: https://www.remotion.dev/lambda++This response has previously been successfully used to obtain an increase of the concurrency limit.++## See also++- [Lambda Rate Limit Troubleshooting](/docs/lambda/troubleshooting/rate-limit)diff --git a/packages/docs/docs/lambda/runtime.md b/packages/docs/docs/lambda/runtime.mdindex d2ca940966..469c449165 100644--- a/packages/docs/docs/lambda/runtime.md+++ b/packages/docs/docs/lambda/runtime.md@@ -84,6 +84,6 @@ While the set of default fonts that we can include must be kept small in order tSee: [Customize Lambda layers](/docs/lambda/custom-layers) to learn about how you can customize this stack.-##Â See also+## See also- [Customize Lambda layers](/docs/lambda/custom-layers)diff --git a/packages/docs/docs/lambda/troubleshooting/rate-limit.md b/packages/docs/docs/lambda/troubleshooting/rate-limit.mdindex 3228a1f131..cfd26da247 100644--- a/packages/docs/docs/lambda/troubleshooting/rate-limit.md+++ b/packages/docs/docs/lambda/troubleshooting/rate-limit.md@@ -21,7 +21,7 @@ By default, the concurrency limit is 1000 functions per region, however in some## Exception: New accounts using AWS Lambda-According to AWS, "some accounts" which are new to AWS Lambda might get a very low concurrency limit such as 10 when they first start with AWS Lambda. In that case, increase the limit via the AWS console or the Remotion CLI (see below)+According to AWS, "some accounts" which are new to AWS Lambda might get a very low concurrency limit such as 10 when they first start with AWS Lambda. In that case, increase the limit via the AWS console or the Remotion CLI (see below).## See your limits@@ -47,6 +47,8 @@ npx remotion lambda quotas increaseThis only works for AWS Root accounts, not the children of an organization. You can still request an increase via the console.:::+[See here](/docs/lambda/limits#if-aws-asks-you-for-the-reason) for a default answer if AWS asks why you requested the increase.+## Unhelpful?Contact the Remotion team, preferrably via [Discord](https://remotion.dev/discord) and we will be happy to help you with your rate limit problem.diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 2ac274a8b8..241b2ff57b 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -347,6 +347,7 @@ module.exports = {"lambda/troubleshooting/bucket-disallows-acl",],},+ "lambda/limits","lambda/changelog","lambda/upgrading","lambda/uninstall",diff --git a/packages/paths/README.md b/packages/paths/README.mdindex 0083ddb9c6..e8fffbe6a7 100644--- a/packages/paths/README.md+++ b/packages/paths/README.md@@ -9,7 +9,7 @@ A package providing utility functions for dealing with SVG paths. This package cNo dependencies are needed, meaning this package can be used independently of Remotion.-##Â API+## API- [`getLength()`](https://remotion.dev/docs/paths/get-length)- [`getParts()`](https://remotion.dev/docs/paths/get-parts)