Skip to content

Commit d1953ad

Browse files
committed
fix(srv): add info on function concurrency
1 parent c068a6a commit d1953ad

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

pages/serverless-functions/concepts.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Startup process steps are:
3939

4040
[How to reduce cold starts](/faq/serverless-functions/#how-to-reduce-cold-start-of-serverless-functions)
4141

42+
## Concurrency
43+
44+
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.
45+
4246
## Container Registry
4347

4448
Container Registry is the place where your images of your Serverless Functions are stored before being deployed.

pages/serverless-functions/reference-content/functions-limitations.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,29 @@ This section contains usage limits that apply when using Serverless Functions.
2121
| Functions | Max number | 1000* | Organization |
2222
| Total function memory\** | Max size | 600 GiB | Organization |
2323
| Custom domains | Max number | 50 | Function |
24-
| Zip Size | Max size | 100 MiB | Function |
25-
| Code Size | Max size | 500 MiB | Function |
24+
| Zip size | Max size | 100 MiB | Function |
25+
| Code size | Max size | 500 MiB | Function |
2626
| Temporary disk size | Max size | 1024 MiB | Function instance |
2727
| Invocation rate | Max number | 1000 per second | Function |
28-
| Concurrency | Max | 1 | Function instance |
29-
| Scaling (Number of simultaneous Function Instances) | Max | 50 | Function |
30-
| Environment Variables | Max number | 100 | Function + Namespace |
31-
| Environment Variables | Max size | 1000 chars | Environment Variable |
32-
| Secret Environment Variables | Max number | 100 | Function + Namespace |
33-
| Secret Environment Variables | Max size | 65536 bytes | Secret Environment Variable |
28+
| Concurrency (number of simultaneous requests)\*** | Max | 1 | Function instance |
29+
| Scaling (number of simultaneous function instances) | Max | 50 | Function |
30+
| Environment variables | Max number | 100 | Function + Namespace |
31+
| Environment variables | Max size | 1000 chars | Environment variable |
32+
| Secret environment variables | Max number | 100 | Function + Namespace |
33+
| Secret environment variables | Max size | 65536 bytes | Secret environment variable |
3434
| Time before scale to zero | Time | 15 minutes | Instance |
3535
| Time before scale down | Time | 30 seconds | Instance |
36-
| Max HTTP request duration\*** | Max | 15 minutes | Request |
36+
| Max HTTP request duration\**** | Max | 15 minutes | Request |
3737
| Payload | Max size | 6 MiB | Request |
3838
| Logs | Logs | 30000 per minute | Project |
3939

4040
\* Lower limits may apply before account verification. [Contact our support team](https://console.scaleway.com/support) if you have any questions.
4141

4242
\** Total function memory is the sum of the memory allocated to all your functions at their maximum Scale.
4343

44-
\*** Maximum duration of a single HTTP request before this request is timed out. Use [Serverless Jobs](/serverless-jobs/) for tasks up to 24h.
44+
\*** Each instance of a function can handle a single request at a time, but a function can have several instances running in parallel.
45+
46+
\**** Maximum duration of a single HTTP request before this request is timed out. Use [Serverless Jobs](/serverless-jobs/) for tasks up to 24h.
4547

4648
These limits are enforced as [Organization quotas](/organizations-and-projects/additional-content/organization-quotas/#serverless-functions).
4749

0 commit comments

Comments
 (0)