From d1953ad6a6c982e49096763319c49c4f16f96b35 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Mon, 3 Mar 2025 15:11:06 +0100 Subject: [PATCH 1/4] fix(srv): add info on function concurrency --- pages/serverless-functions/concepts.mdx | 4 ++++ .../functions-limitations.mdx | 22 ++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index 0d1da7203e..d3ea642237 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -39,6 +39,10 @@ Startup process steps are: [How to reduce cold starts](/faq/serverless-functions/#how-to-reduce-cold-start-of-serverless-functions) +## Concurrency + +Concurrency defines the capacity of a resource to process several requests at the same time. A single instance of a function has a concurrency of `1` as it handles requests sequentially, one by one, but a Serverless Function can have several instances running in parallel, depending on its [scaling](#scaling) configuration. + ## Container Registry Container Registry is the place where your images of your Serverless Functions are stored before being deployed. diff --git a/pages/serverless-functions/reference-content/functions-limitations.mdx b/pages/serverless-functions/reference-content/functions-limitations.mdx index 3100d66bc0..2104e63a8e 100644 --- a/pages/serverless-functions/reference-content/functions-limitations.mdx +++ b/pages/serverless-functions/reference-content/functions-limitations.mdx @@ -21,19 +21,19 @@ This section contains usage limits that apply when using Serverless Functions. | Functions | Max number | 1000* | Organization | | Total function memory\** | Max size | 600 GiB | Organization | | Custom domains | Max number | 50 | Function | -| Zip Size | Max size | 100 MiB | Function | -| Code Size | Max size | 500 MiB | Function | +| Zip size | Max size | 100 MiB | Function | +| Code size | Max size | 500 MiB | Function | | Temporary disk size | Max size | 1024 MiB | Function instance | | Invocation rate | Max number | 1000 per second | Function | -| Concurrency | Max | 1 | Function instance | -| Scaling (Number of simultaneous Function Instances) | Max | 50 | Function | -| Environment Variables | Max number | 100 | Function + Namespace | -| Environment Variables | Max size | 1000 chars | Environment Variable | -| Secret Environment Variables | Max number | 100 | Function + Namespace | -| Secret Environment Variables | Max size | 65536 bytes | Secret Environment Variable | +| Concurrency (number of simultaneous requests)\*** | Max | 1 | Function instance | +| Scaling (number of simultaneous function instances) | Max | 50 | Function | +| Environment variables | Max number | 100 | Function + Namespace | +| Environment variables | Max size | 1000 chars | Environment variable | +| Secret environment variables | Max number | 100 | Function + Namespace | +| Secret environment variables | Max size | 65536 bytes | Secret environment variable | | Time before scale to zero | Time | 15 minutes | Instance | | Time before scale down | Time | 30 seconds | Instance | -| Max HTTP request duration\*** | Max | 15 minutes | Request | +| Max HTTP request duration\**** | Max | 15 minutes | Request | | Payload | Max size | 6 MiB | Request | | Logs | Logs | 30000 per minute | Project | @@ -41,7 +41,9 @@ This section contains usage limits that apply when using Serverless Functions. \** Total function memory is the sum of the memory allocated to all your functions at their maximum Scale. -\*** Maximum duration of a single HTTP request before this request is timed out. Use [Serverless Jobs](/serverless-jobs/) for tasks up to 24h. +\*** Each instance of a function can handle a single request at a time, but a function can have several instances running in parallel. + +\**** Maximum duration of a single HTTP request before this request is timed out. Use [Serverless Jobs](/serverless-jobs/) for tasks up to 24h. These limits are enforced as [Organization quotas](/organizations-and-projects/additional-content/organization-quotas/#serverless-functions). From 72a99f51f339f86e7c6360395be90377724704c4 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Mon, 3 Mar 2025 15:44:25 +0100 Subject: [PATCH 2/4] fix(srv): add info on function concurrency --- pages/serverless-functions/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index d3ea642237..f7330086ad 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -41,7 +41,7 @@ Startup process steps are: ## Concurrency -Concurrency defines the capacity of a resource to process several requests at the same time. A single instance of a function has a concurrency of `1` as it handles requests sequentially, one by one, but a Serverless Function can have several instances running in parallel, depending on its [scaling](#scaling) configuration. +Concurrency defines the capacity of a resource to process several requests at the same time. A single instance of a function has a concurrency of `1` as it handles requests sequentially, one by one, but a Serverless Function can have several instances running in parallel, depending on its [autoscaling](#autoscaling) configuration. ## Container Registry From e55ec8a5ed6ddc42a625bedaf06b9f1c14a59657 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Tue, 4 Mar 2025 11:40:27 +0100 Subject: [PATCH 3/4] Update pages/serverless-functions/concepts.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- pages/serverless-functions/concepts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-functions/concepts.mdx b/pages/serverless-functions/concepts.mdx index f7330086ad..4d6b10f50f 100644 --- a/pages/serverless-functions/concepts.mdx +++ b/pages/serverless-functions/concepts.mdx @@ -41,7 +41,7 @@ Startup process steps are: ## Concurrency -Concurrency defines the capacity of a resource to process several requests at the same time. A single instance of a function has a concurrency of `1` as it handles requests sequentially, one by one, but a Serverless Function can have several instances running in parallel, depending on its [autoscaling](#autoscaling) configuration. +Concurrency defines the capacity of a resource to process several requests at the same time. A single instance of a function has a concurrency of `1` as it handles requests sequentially, one by one, but a Serverless Function can have several instances running at the same time, depending on its [autoscaling](#autoscaling) configuration. ## Container Registry From 54347a1d828236547a00a71a7087c83f105ba821 Mon Sep 17 00:00:00 2001 From: SamyOubouaziz Date: Tue, 4 Mar 2025 11:40:33 +0100 Subject: [PATCH 4/4] Update pages/serverless-functions/reference-content/functions-limitations.mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Néda <87707325+nerda-codes@users.noreply.github.com> --- .../reference-content/functions-limitations.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/serverless-functions/reference-content/functions-limitations.mdx b/pages/serverless-functions/reference-content/functions-limitations.mdx index 2104e63a8e..4a5d40c39a 100644 --- a/pages/serverless-functions/reference-content/functions-limitations.mdx +++ b/pages/serverless-functions/reference-content/functions-limitations.mdx @@ -41,7 +41,7 @@ This section contains usage limits that apply when using Serverless Functions. \** Total function memory is the sum of the memory allocated to all your functions at their maximum Scale. -\*** Each instance of a function can handle a single request at a time, but a function can have several instances running in parallel. +\*** Each instance of a function can handle a single request at a time, but a function can have several instances running at the same time. \**** Maximum duration of a single HTTP request before this request is timed out. Use [Serverless Jobs](/serverless-jobs/) for tasks up to 24h.