Skip to content

Commit e2ce0f7

Browse files
docs(srv): add titles to FAQ pages MTA-5486 (#4253)
* docs(srv): add titles to FAQ pages MTA-5486 * docs(srv): update * docs(srv): update * docs(srv): update * Update faq/serverless-containers.mdx Co-authored-by: Néda <[email protected]> * Update faq/serverless-containers.mdx Co-authored-by: Néda <[email protected]> * Apply suggestions from code review Co-authored-by: Néda <[email protected]> * Apply suggestions from code review Co-authored-by: Néda <[email protected]> * Update faq/serverless-functions.mdx Co-authored-by: Néda <[email protected]> * Update faq/serverless-functions.mdx Co-authored-by: Néda <[email protected]> --------- Co-authored-by: Néda <[email protected]>
1 parent 5f1e65e commit e2ce0f7

File tree

3 files changed

+206
-175
lines changed

3 files changed

+206
-175
lines changed

faq/serverless-containers.mdx

Lines changed: 82 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -10,66 +10,44 @@ category: serverless
1010
productIcon: ContainersProductIcon
1111
---
1212

13-
## What is serverless computing, and how does it differ from traditional cloud hosting?
13+
## Overview
14+
15+
### What is serverless computing, and how does it differ from traditional cloud hosting?
1416

1517
Serverless computing is a cloud execution model where the cloud provider dynamically manages the allocation of compute resources. Unlike traditional hosting models, you do not need to provision, scale, or maintain servers. Instead, you focus solely on writing and deploying your code, and the infrastructure scales automatically to meet demand.
1618

17-
## Why consider using Serverless Containers, Functions, or Jobs for my projects?
19+
### Why consider using Serverless Containers, Functions, or Jobs for my projects?
1820

1921
These services allow you to build highly scalable, event-driven, and pay-as-you-go solutions. Serverless Containers and Functions help you create applications and microservices without worrying about server management, while Serverless Jobs lets you run large-scale, parallel batch-processing tasks efficiently. This can lead to faster development cycles, reduced operational overhead, and cost savings.
2022

21-
## Can I run any application on Serverless Containers?
23+
### Can I run any application on Serverless Containers?
2224

2325
Yes. Because Serverless Containers supports any containerized application, you can choose the language, runtime, and framework that best suits your needs. As long as it can run in a container and respond to HTTP requests, Serverless Containers can host it.
2426

25-
## What are the cost benefits of using serverless services like Serverless Containers?
27+
### What are the cost benefits of using serverless services like Serverless Containers?
2628

2729
With serverless, you only pay for the computing resources you use. There are no upfront provisioning costs or paying for idle capacity. When your application traffic is low, the cost scales down, and when traffic spikes, the platform automatically scales up, ensuring you never overpay for unused resources.
2830

29-
## Can updates of Serverless Containers cause downtime?
30-
31-
No, deploying a new version of your Serverless Container generates a **rolling update**. This means that a new version of the service is gradually
32-
rolled out to your users without downtime. Here is how it works:
33-
34-
* When a new version of your container is deployed, the platform automatically starts routing traffic to the new version incrementally, while still serving requests from the old version until the new one is fully deployed.
35-
* Once the new version is successfully running, we gradually shift all traffic to it, ensuring zero downtime.
36-
* The old version is decommissioned once the new version is fully serving traffic.
37-
38-
This process ensures a seamless update experience, minimizing user disruption during deployments. If needed, you can also manage traffic splitting between versions during the update process, allowing you to test new versions with a subset of traffic before fully migrating to it.
39-
40-
## Can I upgrade Serverless Container resources (vCPU and RAM) at any time?
41-
42-
Yes, Serverless Containers resources can be changed at any time without causing downtime - see the previous question for full details.
43-
44-
## How does scaling work in these serverless services?
45-
46-
Scaling in Serverless Containers and Serverless Functions is handled automatically by the platform. When demand increases - more requests or events - the platform spins up additional instances to handle the load. When demand decreases, instances spin down. This ensures optimal performance without manual intervention.
47-
48-
## How do I integrate my serverless solutions with other Scaleway services?
49-
50-
Integration is straightforward. Serverless Functions and Containers can be triggered by events from [Queues](/serverless/messaging/concepts/#queues) and [Topics and Events](/serverless/messaging/concepts/#topics-and-events), and can easily communicate with services like [Managed Databases](/managed-databases/) or [Serverless databases](/serverless/sql-databases/). [Serverless Jobs](/serverless/jobs/) can pull data from [Object Storage](/storage/object), or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.
51-
52-
## Can I migrate existing applications to Serverless Containers?
31+
### Are applications deployed on Serverless Containers stateless?
5332

54-
Yes. Many traditional applications can be containerized and deployed to Serverless Containers. This makes it easier to modernize legacy systems without a complete rewrite. By moving to a serverless platform, you gain automatic scaling, reduced operational overhead, and a simpler infrastructure management experience.
33+
Yes, all applications deployed on Serverless Containers are stateless. This means the server does not store any state about the client session. Instead, the session data is stored on the client and passed to the server as needed.
5534

56-
## Are applications deployed on Serverless Containers stateless?
5735

58-
Yes, all applications deployed on Serverless Containers are stateless. This means the server does not store any state about the client session. Instead, the session data is stored on the client and passed to the server as needed.
36+
## Billing
5937

60-
## How am I billed for Serverless Containers?
38+
### How am I billed for Serverless Containers?
6139

62-
### Principles
40+
#### Principles
6341

6442
Serverless Containers are billed on a pay-as-you-go basis, strictly on resource consumption (Memory and CPU).
6543

6644
* **Memory consumption:** The memory consumption is obtained by multiplying the memory tier chosen by the container run duration.
6745
* **vCPU consumption:** The vCPU consumption is obtained by multiplying the vCPU tier chosen by the container run duration.
6846
* **Ephemeral storage:** Is free of charge, the maximum value of ephemeral storage depends on the memory value.
6947

70-
<Lightbox src={["scaleway-caas-billing-1.webp", "scaleway-caas-billing-2.webp"]} size={"medium"} alt={["Scerverless Containers Billing", "Serverless Containers Billing"]} />
48+
<Lightbox src={["scaleway-caas-billing-1.webp", "scaleway-caas-billing-2.webp"]} size={"medium"} alt={["Serverless Containers Billing", "Serverless Containers Billing"]} />
7149

72-
### Prices
50+
#### Prices
7351

7452
* **Memory consumption:** €0.10 per 100 000 GB-s, and we provide a **400 000 GB-s free tier** per account and per month.
7553

@@ -93,7 +71,7 @@ Serverless Containers are billed on a pay-as-you-go basis, strictly on resource
9371
| 0.56 vCPU | €0.0000056 |
9472
| 1.12 vCPU | €0.0000112 |
9573

96-
### Example
74+
#### Example
9775

9876
| Criteria | Value |
9977
|--------------------------- |-------------- |
@@ -102,7 +80,7 @@ Serverless Containers are billed on a pay-as-you-go basis, strictly on resource
10280
| Amount of vCPU allocated | 70 mvCPU |
10381
| Free tier | Yes |
10482

105-
#### Price calculation
83+
##### Price calculation
10684

10785
* **Memory consumption**
10886
* *Allocated Memory conversion:* 128 MB = 0.125 GB
@@ -119,15 +97,40 @@ Serverless Containers are billed on a pay-as-you-go basis, strictly on resource
11997

12098
**Monthly Cost: €22.35**
12199

122-
## How can I select the right resources (vCPU/RAM/ephemeral storage) for Serverless Containers ?
100+
## Resources and performance
101+
102+
### Can I upgrade Serverless Container resources (vCPU and RAM) at any time?
103+
104+
Yes, Serverless Containers resources can be changed at any time without causing downtime - see the previous question for full details.
105+
106+
### How does scaling work in these serverless services?
107+
108+
Scaling in Serverless Containers and Serverless Functions is handled automatically by the platform. When demand increases - more requests or events - the platform spins up additional instances to handle the load. When demand decreases, instances spin down. This ensures optimal performance without manual intervention.
109+
110+
### Can updates of Serverless Containers cause downtime?
111+
112+
No, deploying a new version of your Serverless Container generates a **rolling update**. This means that a new version of the service is gradually
113+
rolled out to your users without downtime. Here is how it works:
114+
115+
* When a new version of your container is deployed, the platform automatically starts routing traffic to the new version incrementally, while still serving requests from the old version until the new one is fully deployed.
116+
* Once the new version is successfully running, we gradually shift all traffic to it, ensuring zero downtime.
117+
* The old version is decommissioned once the new version is fully serving traffic.
118+
119+
This process ensures a seamless update experience, minimizing user disruption during deployments. If needed, you can also manage traffic splitting between versions during the update process, allowing you to test new versions with a subset of traffic before fully migrating to it.
120+
121+
### Can I migrate existing applications to Serverless Containers?
122+
123+
Yes. Many traditional applications can be containerized and deployed to Serverless Containers. This makes it easier to modernize legacy systems without a complete rewrite. By moving to a serverless platform, you gain automatic scaling, reduced operational overhead, and a simpler infrastructure management experience.
124+
125+
### How can I select the right resources (vCPU/RAM/ephemeral storage) for Serverless Containers ?
123126

124127
Insufficient vCPU, RAM or ephemeral storage can lead to containers going to error status. Make sure to provision enough resources for your container.
125128

126129
We recommend you set high values, [use metrics to monitor](/serverless/containers/how-to/monitor-container/) the resource usage of your container, then adjust the values accordingly.
127130

128-
## How can I reduce the cold-starts of Serverless Containers ?
131+
### How can I reduce the cold-starts of Serverless Containers ?
129132

130-
* **Optimize the startup**: Cold-starts can be affected by a loading a large number of dependencies and opening lot of resources at startup.
133+
* **Optimize the startup**: Cold-starts can be affected by loading a large number of dependencies and opening several resources at startup.
131134
Ensure that your code avoids heavy computations or long-running initialization at startup and optimize the number of loaded libraries.
132135

133136
* **Keep your container warm**: You can use CRON triggers at certain intervals to keep your container warm or set the min-scale parameter to `1` when required.
@@ -136,72 +139,80 @@ Ensure that your code avoids heavy computations or long-running initialization a
136139

137140
* **Use sandbox v2**: We recommend you use sandbox v2 (advanced settings) to reduce cold starts.
138141

139-
## What are the limitations of Serverless Containers?
142+
### What are the limitations of Serverless Containers?
140143

141144
Refer to our dedicated page about [Serverless Containers limitations and configuration restrictions](/serverless/containers/reference-content/containers-limitations/) for more information.
142145

143-
## Where should I host my container images for deployment ?
146+
### Why does my container have an instance running after deployment, even with min-scale 0?
144147

145-
<Macro id="container-registry-note" />
148+
Currently, a new container instance will always start after each deployment, even if there is no traffic and the minimum
149+
scale is set to 0. This behavior is not configurable at this time.
146150

147-
## How can I copy an image from an external registry to Scaleway Container Registry?
151+
## Usage
148152

149-
You can copy an image from an external registry using the Docker CLI, or open source third-party tools such as Skopeo. Refer to the [dedicated documentation](/serverless/containers/api-cli/migrate-external-image-to-scaleway-registry/) for more information.
153+
### How can I deploy my containers?
150154

151-
## Can I whitelist the IPs of my containers?
155+
There are several ways to deploy containers. Refer to the [dedicated documentation](/serverless/containers/reference-content/deploy-container/) to determine the best method for your use case.
152156

153-
Serverless Containers does not yet support Private Networks. However, you can use the Scaleway IP ranges defined at [https://www.scaleway.com/en/peering/](https://www.scaleway.com/en/peering/) on Managed Databases and other products that allow IP filtering.
157+
### How do I integrate my serverless solutions with other Scaleway services?
154158

155-
## How can I deploy my Containers?
159+
Integration is straightforward. Serverless Functions and Containers can be triggered by events from [Queues](/serverless/messaging/concepts/#queues) and [Topics and Events](/serverless/messaging/concepts/#topics-and-events), and can easily communicate with services like [Managed Databases](/managed-databases/) or [Serverless databases](/serverless/sql-databases/). [Serverless Jobs](/serverless/jobs/) can pull data from [Object Storage](/storage/object), or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.
156160

157-
There are several ways to deploy containers. Refer to the [dedicated documentation](/serverless/containers/reference-content/deploy-container/) to determine the best method for your use case.
161+
### Where should I host my container images for deployment ?
158162

159-
## Which protocols are supported by Serverless Containers?
163+
<Macro id="container-registry-note" />
160164

161-
Serverless Containers use the **http1** protocol by default, but some services (e.g., gRPC) only support http2.
165+
### How can I copy an image from an external registry to Scaleway Container Registry?
162166

163-
Protocol switching is available in the Console under the `Advanced options` section in the `Deployment` tab.
167+
You can copy an image from an external registry using the Docker CLI, or open source third-party tools such as [Skopeo](https://github.com/containers/skopeo). Refer to the [dedicated documentation](/serverless/containers/api-cli/migrate-external-image-to-scaleway-registry/) for more information.
168+
169+
### How do Serverless Containers health checks work ?
170+
171+
A Serverless Container is set to `ready` once the specified port is correctly bound to the container, and will start receiving traffic. If your application needs to perform some tasks before receiving traffic (e.g. connect to a database), it is important to run them before binding to the port (starting the webserver).
172+
For now, the `HEALTHCHECK` Docker directive has no impact on container readiness. In the future, the health check will be customizable for your applications.
173+
174+
## Network and storage
175+
176+
### Can I whitelist the IPs of my containers?
164177

165-
## Why does my gRPC container not respond?
178+
Serverless Containers does not yet support Private Networks. However, you can use the Scaleway IP ranges defined at [https://www.scaleway.com/en/peering/](https://www.scaleway.com/en/peering/) on Managed Databases and other products that allow IP filtering.
179+
180+
### Which protocols are supported by Serverless Containers?
166181

167-
Containers use http1 by default, yet the gRPC protocol requires http2. You can upgrade the protocol to http2 (`h2c`).
182+
Serverless Containers use the **http1** protocol by default, but some services (e.g., gRPC) only support `http2`.
183+
184+
Protocol switching is available in the Console under the `Advanced options` section in the `Deployment` tab.
168185

169-
## How does Serverless Container healthcheck work ?
186+
### Why does my gRPC container not respond?
170187

171-
A Serverless Container is set to `ready` once the specified port is correctly bound to the container, and will start receiving traffic. If your application needs to perform some tasks before receiving traffic (e.g. connect to a database), it's important to run them before binding to the port (starting the webserver).
172-
For now, the `HEALTHCHECK` Docker directive has no impact on container readiness. In the future, the healthcheck will be customizable for your applications.
188+
Containers use **http1** by default, yet the gRPC protocol requires `http2`. You can upgrade the protocol to `http2` (`h2c`).
173189

174-
## How can I configure access to a Private Network?
190+
### How can I configure access to a Private Network?
175191

176192
Scaleway Serverless Containers does not currently support Scaleway VPC or Private Networks, though this feature is under development.
177193

178-
To add network restrictions on your resource, consult the [list of prefixes used at Scaleway](https://www.scaleway.com/en/peering/). Serverless resources do not have dedicated or predictable IP addresses.
194+
To add network restrictions on your resource, refer to the [list of prefixes used at Scaleway](https://www.scaleway.com/en/peering/). Serverless resources do not have dedicated or predictable IP addresses.
179195

180-
## How can I attach Block Storage to a Serverless Container?
196+
### How can I attach Block Storage to a Serverless Container?
181197

182198
Scaleway Serverless Containers do not currently support attaching Block Storage. These containers are designed to be
183199
stateless, meaning they do not retain data between invocations. For persistent storage, we recommend using external
184200
solutions like Scaleway Object Storage.
185201

186-
## Why does my container have an instance running after deployment, even with min-scale 0?
187-
188-
Currently, a new container instance will always start after each deployment, even if there is no traffic and the minimum
189-
scale is set to 0. This behavior is not configurable at this time.
190-
191-
## How can I store data in my Serverless resource?
202+
### How can I store data in my Serverless resource?
192203

193204
Serverless resources are by default [stateless](/serverless/containers/concepts/#stateless), local storage is ephemeral.
194205

195-
For some use cases, such as saving analysis results, exporting data etc., it can be important to save data. Serverless resources can be connected to other resources from the Scaleway ecosystem for this purpose:
206+
For certain use cases, such as saving analysis results or exporting data, it can be important to have permanent storage to save data. Serverless resources can be connected to other resources from the Scaleway ecosystem for this purpose:
196207

197-
### Databases
208+
#### Databases
198209

199210
* [Serverless Databases](/serverless/sql-databases/): Go full serverless and take the complexity out of PostgreSQL database operations.
200211
* [Managed MySQL / PostgreSQL](/managed-databases/postgresql-and-mysql/): Ensure scalability of your infrastructure and storage with our new generation of Managed Databases designed to scale on-demand according to your needs.
201212
* [Managed Database for Redis®](/managed-databases/redis/): Fully managed Redis®* in seconds.
202213
* [Managed MongoDB®](/managed-databases/mongodb/): Get the best of MongoDB® and Scaleway in one database.
203214

204-
### Storage
215+
#### Storage
205216

206217
* [Object Storage](/storage/object/): Multi-AZ resilient object storage service ensuring high availability for your data.
207218
* [Scaleway Glacier](/storage/object/): Our outstanding Cold Storage class to secure long-term object storage. Ideal for deep archived data.
@@ -212,10 +223,10 @@ Explore all Scaleway products in the console and select the right product for yo
212223
Further integrations are also possible even if not listed above, for example, [Secret Manager](/identity-and-access-management/secret-manager/) can help you to store information that requires versioning.
213224
</Message>
214225

215-
## Can I use Serverless Containers with Edge Services?
226+
### Can I use Serverless Containers with Edge Services?
216227

217228
You cannot use Serverless Containers with Edge Services because there are no native integrations between the two products yet.
218229

219-
## Can I use the IP address of a Serverless Function?
230+
### Can I use the IP address of a Serverless Function?
220231

221232
By design, it is not possible to guarantee static IPs on Serverless compute resources.

0 commit comments

Comments
 (0)