You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Temporary disk size | Max size | 1024 MiB | Container |
25
+
| Recommended maximum uncompressed image size | Max size | 1 GB | Container |
26
+
| Temporary disk size ¨ | Max size | 24 000 MiB | Container |
28
27
| Invocation rate | Max number | 1000 per second | Container |
29
28
| Concurrency | Max | 80 | Container Instance |
30
29
| Max Scale (simultaneous Container instances) | Max | 50 | Container |
@@ -49,6 +48,17 @@ These limits are enforced as [Organization quotas](/organizations-and-projects/a
49
48
50
49
During the execution of the container, if the limits are exceeded, a restart occurs.
51
50
51
+
## Image size
52
+
53
+
We recommend to keep your image size **below 1GB** to ensure faster deployment and better cold start performances.
54
+
55
+
### Tips for keeping image size down
56
+
57
+
* Use lightweight distribution like *Alpine*
58
+
* Minimize layers and unnecessary dependencies
59
+
* Clean up temp files and cache (e.g., `rm -rf /var/lib/apt/lists/*` in Debian-based images)
60
+
* Use multi-stage builds to keep only runtime essentials. [Example](https://github.com/scaleway/serverless-examples/blob/a7a3b5fc3427ec0f1391aaa78957f91af266867c/containers/rust-hello-world/Dockerfile#L14)
61
+
52
62
## Configuration Restrictions
53
63
54
64
In order to ensure the proper functioning of the product, we restrict the use of certain ports and environment variables
Copy file name to clipboardExpand all lines: pages/serverless-jobs/reference-content/jobs-limitations.mdx
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,3 +62,14 @@ In order to ensure the proper functioning of the product, we restrict the use of
62
62
## Private Network and Virtual Private Cloud (VPC) compatibility
63
63
64
64
Refer to the [dedicated FAQ](/serverless-jobs/faq/#how-can-i-configure-access-to-a-private-network-or-virtual-private-cloud-vpc) for more information on Serverless Jobs compatibility with Private Networks and [Virtual Private Cloud (VPC)](/vpc/).
65
+
66
+
## Image size
67
+
68
+
We recommend to keep your image size **below 2GB** to ensure faster deployment.
69
+
70
+
### Tips for keeping image size down
71
+
72
+
* Use lightweight distribution like *Alpine*
73
+
* Minimize layers and unnecessary dependencies
74
+
* Clean up temp files and cache (e.g., `rm -rf /var/lib/apt/lists/*` in Debian-based images)
75
+
* Use multi-stage builds to keep only runtime essentials. [Example](https://github.com/scaleway/serverless-examples/blob/a7a3b5fc3427ec0f1391aaa78957f91af266867c/containers/rust-hello-world/Dockerfile#L14)
0 commit comments