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
See [Commands and arguments](#commands-and-arguments) below.
14
-
15
10
## Autoscaling
16
11
17
12
Autoscaling refers to the ability of Serverless Containers to automatically adjust the number of instances without manual intervention.
@@ -24,6 +19,22 @@ Autoscaling parameters are [min-scale](/serverless-containers/concepts/#min-scal
24
19
25
20
Refer to the [dedicated documentation](/serverless-containers/reference-content/containers-autoscaling/) for more information on autoscaling.
26
21
22
+
### Min scale
23
+
24
+
Customizing the minimum scale for Serverless can help ensure that an instance remains pre-allocated and ready to handle requests, reducing delays associated with [cold starts](#cold-start). However, this setting also impacts the costs of your Serverless Container.
25
+
26
+
For **CPU** and **RAM** based autoscaling, min-scale value must be at least `1`.
27
+
28
+
### Max scale
29
+
30
+
This parameter sets the maximum number of container instances.
31
+
32
+
You should adjust it based on your container's traffic spikes, keeping in mind that you may wish to limit the maximum scale to manage costs effectively while provisioning enough containers to handle spikes.
33
+
34
+
### Scale to zero
35
+
36
+
When provisioned with a [minimum scale](#min-scale) of `0`, Serverless Containers scale down to zero active instances as long as they are not triggered. While idling, they do not consume any resources, which allows to reduce the cost of your infrastructure.
37
+
27
38
## Cold start
28
39
29
40
Cold start is the time a Container takes to handle a request when it is called for the first time.
@@ -54,6 +65,10 @@ args: ["$(MESSAGE)"]
54
65
55
66
Refer to the [official Kubernetes documentation](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/) for more information on commands and arguments behavior.
56
67
68
+
### Arguments
69
+
70
+
See [Commands and arguments](#commands-and-arguments).
71
+
57
72
## Concurrency
58
73
59
74
Concurrency defines the number of simultaneous requests a single instance of your container can handle at the same time. Once the number of incoming requests exceeds this value, your container scales according to your parameters.
@@ -62,34 +77,28 @@ Refer to the [dedicated documentation](/serverless-containers/reference-content/
62
77
63
78
## Container
64
79
65
-
A container is a package of software that includes all dependencies: code, runtime, configuration, and system libraries so that it can run on any host system. Scaleway provides custom Docker images that are entirely handled for you in the cloud.
80
+
A container is a package of software that includes all dependencies: code, runtime, configuration, and system libraries so that it can run on any host system.
66
81
67
82
## Container image
68
83
69
84
A container image is a file that includes all the requirements and instructions of a complete and executable version of an application.
70
85
71
86
## Container Registry
72
87
73
-
Container Registry is the place where your images are stored before being deployed. We recommend using Scaleway Container Registry for optimal integration. See the [migration guide](/serverless-containers/api-cli/migrate-external-image-to-scaleway-registry/) for full details.
74
-
75
-
## CRON trigger
76
-
77
-
A CRON trigger is a mechanism used to automatically invoke a Serverless Container at a specific time on a recurring schedule.
78
-
79
-
It works similarly to a traditional Linux [cron job](https://en.wikipedia.org/wiki/Cron), using the `* * * * *` format, and uses the **UTC** time zone. Refer to our [cron schedules reference](/serverless-containers/reference-content/cron-schedules/) for more information.
80
-
81
-
## Custom domain
82
-
83
-
By default, a generated endpoint is assigned to your Serverless resource. Custom domains allow you to use your own domain - see our [custom domain documentation](/serverless-containers/how-to/add-a-custom-domain-to-a-container) for full details.
88
+
Container Registry is the place where your images are stored before being deployed. We recommend using Scaleway Container Registry for optimal integration and performances. See the [migration guide](/serverless-containers/api-cli/migrate-external-image-to-scaleway-registry/) for full details.
84
89
85
90
## Deployment
86
91
87
-
Some parameter changes require a new deployment of the container to take effect. The deployment happens without causing downtime, as traffic is switched to the newest version.
92
+
Some parameter changes require a new deployment of the container to take effect. The deployment happens without causing downtime, as traffic is switched to the newest version once it's ready.
88
93
89
94
## Endpoint
90
95
91
96
An endpoint is the URL generated to access your resource. It can be customized with [custom domains](#custom-domain).
92
97
98
+
### Custom domain
99
+
100
+
By default, a generated endpoint is assigned to your Serverless resource. Custom domains allow you to use your own domain - see our [custom domain documentation](/serverless-containers/how-to/add-a-custom-domain-to-a-container) for full details.
101
+
93
102
## Environment variables
94
103
95
104
Environment variables are key/value pairs injected into your container. They are useful to share information such as configurations with your container. Environment variables defined at the container level override the ones defined at the namespace level if they have the same name.
@@ -98,18 +107,10 @@ Some names are reserved. [See details about reserved names](/serverless-containe
98
107
99
108
## Ephemeral storage
100
109
101
-
In addition to vCPU and RAM, Serverless Containers also provide a storage volume for the duration of the task. This storage space allows you to hold the data retrieved by the job, and disappears once the execution is complete.
110
+
In addition to vCPU and RAM, Serverless Containers also provide a storage volume for the duration of the task. This storage space allows you to hold data during the life of the Servlerless Container instance and disappears once the execution is complete.
102
111
103
112
The maximum size of the ephemeral storage is tied to the allocated memory.
104
113
105
-
## GB-s
106
-
107
-
Unit used to measure the resource consumption of a container. It reflects the amount of memory consumed over time.
108
-
109
-
## gRPC
110
-
111
-
gRPC is supported on Serverless Containers, as long as you have enabled http2 (`h2c`) protocol.
112
-
113
114
## Health check
114
115
115
116
To determine the status of a container, the default health check automatically checks if basic requirements are met, to define the status as `ready`. You can customize the following elements to better fit your use case:
@@ -126,49 +127,26 @@ You can define custom health check rules via the [Scaleway console](/serverless-
126
127
127
128
A Serverless Container instance handles incoming requests based on factors like the request volume, min scale, and max scale parameters.
128
129
129
-
## JWT Token
130
-
131
-
JWT (JSON Web Token) is an access token you can create from the console or API to enable an application to access your private container. [Find out how to secure a container](/serverless-containers/how-to/secure-a-container/#restrict-access-to-your-containers).
132
-
133
130
## Load balancing
134
131
135
132
The Serverless infrastructure manages incoming request traffic. In scenarios like sudden traffic spikes or load testing, resources are automatically scaled based on the max scale parameter to handle the load.
136
133
137
-
## Logging
134
+
## Monitoring
138
135
139
-
Serverless Containers offers a built-in logging system based on Cockpit to track the activity of your resources. Refer to [monitoring Serverless Containers](/serverless-containers/how-to/monitor-container/) for more information.
136
+
### Logging
140
137
141
-
## Max scale
142
-
143
-
This parameter sets the maximum number of container instances. You should adjust it based on your container's traffic spikes, keeping in mind that you may wish to limit the maximum scale to manage costs effectively.
138
+
Serverless Containers offers a built-in logging system based on Cockpit to track the activity of your resources. Refer to [monitoring Serverless Containers](/serverless-containers/how-to/monitor-container/) for more information.
144
139
145
-
## Metrics
140
+
### Metrics
146
141
147
142
Performance metrics for your Serverless resources are natively available. Refer to [monitoring Serverless Containers](/serverless-containers/how-to/monitor-container/) for more information.
148
143
149
-
## Min scale
150
-
151
-
Customizing the minimum scale for Serverless can help ensure that an instance remains pre-allocated and ready to handle requests, reducing delays associated with cold starts. However, this setting also impacts the costs of your Serverless Container.
152
-
153
-
## mvCPU
154
-
155
-
A [vCPU](#vcpu) (Virtual Central Processing Unit) is equivalent to 1000 mvCPU.
156
-
157
144
## Namespace
158
145
159
-
A namespace is a project that allows you to [group your containers](/serverless-containers/how-to/create-manage-delete-containers-namespace/).
146
+
A namespace is a folder with some settings that allows you to [group your containers](/serverless-containers/how-to/create-manage-delete-containers-namespace/).
160
147
161
148
Containers in the same namespace can share environment variables, secrets, and access tokens, defined at the namespace level.
162
149
163
-
## NATS trigger
164
-
165
-
A NATS trigger is a mechanism that connects a container to a [NATS](/nats/concepts/#nats) subject and invokes the container automatically whenever a message is published to the subject.
166
-
167
-
For each message that is sent to a NATS subject, the NATS trigger reads the message and invokes the associated container with the message as the input parameter.
168
-
The container can then process the message and perform any required actions, such as updating a database or sending a notification.
169
-
170
-
Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container.
171
-
172
150
## Port
173
151
174
152
The port of a containerized application refers to the network port that the application inside the container listens on for incoming requests.
@@ -179,6 +157,10 @@ Refer to the [dedicated documentation](/serverless-containers/reference-content/
179
157
180
158
A container's privacy policy defines whether a container may be invoked anonymously (**public**) or only via an authentication mechanism provided by the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-containers/#authentication) (**private**).
181
159
160
+
### JWT Token
161
+
162
+
JWT (JSON Web Token) is an access token you can create to enable an application to access your `private` container. [Find out how to restrict access to a container](/serverless-containers/how-to/secure-a-container/#restrict-access-to-your-containers).
163
+
182
164
## Private Networks
183
165
184
166
Scaleway Serverless Containers support Private Networks.
@@ -187,23 +169,14 @@ Private Networks let you connect Scaleway resources across multiple AZs within t
187
169
188
170
**D**ynamic **H**ost **C**onfiguration **P**rotocol (DHCP) is built into each Private Network, making it easy to manage the private IP addresses of your resources on the network.
189
171
190
-
Read our dedicated documentation on [creating a Private Network](/vpc/how-to/create-private-network/).
172
+
Read our dedicated documentation on [use Private Networks](/serverless-containers/how-to/use-private-networks/).
191
173
192
174
<Message type="note">
193
175
Previously, Private Networks at Scaleway were zoned. Only resources from within one defined AZ could be attached to each network. Now, all Private Networks are regional, and resources from any AZ within that network's region can be attached. "Old" zoned Private Networks have all been automatically migrated to become regional.
194
176
195
177
While DHCP is built into all new Private Networks, it may not be automatically activated for older Private Networks. Check our [migration](/vpc/reference-content/vpc-migration/) documentation for more information.
196
178
</Message>
197
179
198
-
## Queue trigger
199
-
200
-
A queue trigger is a mechanism that connects a container to a queue created with [Scaleway Queues](/queues/concepts/#scaleway-queues), and invokes the container automatically whenever a message is added to the queue.
201
-
202
-
For each message that is sent to a queue, the trigger reads the message and invokes the associated container with the message as the input parameter.
203
-
The container can then process the message, and perform any required actions, such as updating a database or sending a notification.
204
-
205
-
Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container.
206
-
207
180
## Registry endpoint
208
181
209
182
The registry endpoint parameter is the resource linked to the container image used in your Serverless Container.
@@ -234,14 +207,12 @@ A sandbox is an isolation area for your container. Serverless Containers offer t
234
207
235
208
Refer to the [dedicated documentation](/serverless-containers/reference-content/containers-sandbox/) for more information on sandbox environments.
236
209
237
-
## Scale to zero
238
-
239
-
When provisioned with a [minimum scale](#min-scale) of `0`, Serverless Containers scale down to zero active instances as long as they are not triggered. While idling, they do not consume any resources, which allows to reduce the cost of your infrastructure.
240
-
241
210
## Secrets
242
211
243
212
Secrets are an extra-secure type of environment variable. They are environment variables that are injected into your container and stored securely, but not displayed in the console after initial validation. Secrets defined at the container level override the ones defined at the namespace level if they have the same name.
244
213
214
+
Secrets on Serverless Containers are not linked with Secret Manager product yet.
215
+
245
216
## Serverless
246
217
247
218
Serverless allows you to deploy your Functions (FaaS) and Containerized Applications (CaaS) in a managed infrastructure. Scaleway ensures the deployment, availability, and scalability of all your projects.
@@ -269,18 +240,37 @@ A Serverless Container can have the following statuses:
269
240
* **Pending**: your resource is under deployment.
270
241
* **Error**: something went wrong during the deployment process. [Check our troubleshooting documentation](/serverless-containers/troubleshooting/cannot-deploy-image) to solve the issue.
271
242
272
-
## Terraform/OpenTofu
243
+
## Triggers
273
244
274
-
Terraform/OpenTofu is a tool for managing infrastructure using code. [Read the Terraform/OpenTofu documentation for Serverless Containers](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container).
245
+
### CRON trigger
275
246
276
-
## vCPU
247
+
A CRON trigger is a mechanism used to automatically invoke a Serverless Container at a specific time on a recurring schedule.
277
248
278
-
vCPU is the abbreviation for **v**irtual **C**entralized **P**rocessing **U**nit. A vCPU represents a portion or share of the underlying physical CPU assigned to a particular container.
279
-
The performance of a vCPU is determined by the percentage of time spent on the physical processor's core. It is possible to allocate different resource allowances on specific vCPUs for specific containers or virtual machines.
249
+
It works similarly to a traditional Linux [cron job](https://en.wikipedia.org/wiki/Cron), using the `* * * * *` format, and uses the **UTC** time zone. Refer to our [cron schedules reference](/serverless-containers/reference-content/cron-schedules/) for more information.
280
250
281
-
## vCPU-s
251
+
It allows Serverless Containers to execute scheduled tasks, like managing other resources, generating backups and waking up the Container at specific times.
282
252
283
-
Unit used to measure the resource consumption of a container. It reflects the amount of vCPU used over time.
253
+
### Queue trigger
254
+
255
+
A queue trigger is a mechanism that connects a container to a queue created with [Scaleway Queues](/queues/concepts/#scaleway-queues), and invokes the container automatically whenever a message is added to the queue.
256
+
257
+
For each message that is sent to a queue, the trigger reads the message and invokes the associated container with the message as the input parameter.
258
+
The container can then process the message, and perform any required actions, such as updating a database or sending a notification.
259
+
260
+
Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container.
261
+
262
+
### NATS trigger
263
+
264
+
A NATS trigger is a mechanism that connects a container to a [NATS](/nats/concepts/#nats) subject and invokes the container automatically whenever a message is published to the subject.
265
+
266
+
For each message that is sent to a NATS subject, the NATS trigger reads the message and invokes the associated container with the message as the input parameter.
267
+
The container can then process the message and perform any required actions, such as updating a database or sending a notification.
268
+
269
+
Refer to the [dedicated documenation](/serverless-containers/how-to/add-trigger-to-a-container/) for more information on how to add triggers to a Serverless Container.
270
+
271
+
## Terraform/OpenTofu
272
+
273
+
Terraform/OpenTofu is a tool for managing infrastructure using code. [Read the Terraform/OpenTofu documentation for Serverless Containers](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/container).
284
274
285
275
## Protocol
286
276
@@ -289,3 +279,26 @@ Serverless Containers supports **http1** (default) and **http2** (`h2c`). Use HT
289
279
<Message type="note">
290
280
HTTP/1.0 is not supported. Refer to the [dedicated troubleshooting page](/serverless-containers/troubleshooting/http1-errors/) for more information.
291
281
</Message>
282
+
283
+
### gRPC
284
+
285
+
gRPC is supported on Serverless Containers, as long as you have enabled http2 (`h2c`) protocol.
286
+
287
+
## Units
288
+
289
+
### vCPU
290
+
291
+
vCPU is the abbreviation for **v**irtual **C**entralized **P**rocessing **U**nit. A vCPU represents a portion or share of the underlying physical CPU assigned to a particular container.
292
+
The performance of a vCPU is determined by the percentage of time spent on the physical processor's core. It is possible to allocate different resource allowances on specific vCPUs for specific containers or virtual machines.
293
+
294
+
### mvCPU
295
+
296
+
A [vCPU](#vcpu) (Virtual Central Processing Unit) is equivalent to 1000 mvCPU.
297
+
298
+
### vCPU-s
299
+
300
+
Unit used to measure the resource consumption of a container. It reflects the amount of vCPU used over time in seconds.
301
+
302
+
### GB-s
303
+
304
+
Unit used to measure the RAM consumption of a container. It reflects the amount of memory consumed over time in seconds.
0 commit comments