Skip to content

Commit 2a00bd6

Browse files
rolling update
1 parent 97911c3 commit 2a00bd6

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

faq/serverless-containers.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ Yes. Because Serverless Containers supports any containerized application, you c
2626

2727
With serverless, you only pay for the compute resources you actually 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.
2828

29+
## Does updates of Serverless Containers can cause downtime?
30+
31+
No, when 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 shifts 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 disruption to users 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 update Serverless Container ressources (vCPU and RAM) at any time?
41+
42+
Yes, Serverless Containers ressources can be changed at any time without causing downtime, see previous question.
43+
2944
## How does scaling work in these serverless services?
3045

3146
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.

faq/serverless-functions.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ With serverless, you only pay for the compute resources you actually use. There
2626

2727
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.
2828

29+
## Does updates of Serverless Function can cause downtime?
30+
31+
No, when deploying a new version of your Serverless Function 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 function 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 shifts 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 disruption to users 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 update Serverless Function ressources (vCPU and RAM) at any time?
41+
42+
Yes, Serverless Functions ressources can be changed at any time without causing downtime, see previous question.
43+
2944
## How do I integrate my serverless solutions with other Scaleway services?
3045

3146
Integration is straightforward. Serverless Functions and Containers can be triggered by events from Queues, SQS and SNS and can easily communicate with services like Managed databases or Serverless databases. Serverless Jobs can pull data from Object Storage or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.

faq/serverless-jobs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Serverless Jobs allows you to run large-scale batch processing and computational
2626

2727
Integration is straightforward. Serverless Functions and Containers can be triggered by events from Queues, SQS and SNS and can easily communicate with services like Managed databases or Serverless databases. Serverless Jobs can pull data from Object Storage or output processed results into a database. With managed connectors, APIs, and built-in integrations, linking to the broader Scaleway ecosystem is seamless.
2828

29+
## Can I update Serverless Jobs ressources (vCPU and RAM) at any time?
30+
31+
Yes, ressources of your Job Definition can be updated at any time.
32+
33+
Ongoing Job Runs will remain using the ressources definied at the time it started.
34+
2935
## How am I billed for Serverless Jobs?
3036

3137
### Principles

serverless/containers/concepts.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@ A queue trigger is a mechanism that connects a container to a queue created with
185185
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.
186186
The container can then process the message and perform any required actions, such as updating a database or sending a notification.
187187

188+
## Rolling update
189+
190+
When deploying a new version of a Serverless Container, a rolling update happens by default. This means that the new version of the service is gradually rolled out to your users without downtime.
191+
Here is how it works:
192+
193+
* 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.
194+
* Once the new version is successfully running, we gradually shifts all traffic to it, ensuring zero downtime.
195+
* The old version is decommissioned once the new version is fully serving traffic.
196+
197+
This process ensures a seamless update experience, minimizing disruption to users 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
198+
188199
## Stateless application
189200

190201
A stateless application is a computer program that does not save client data between sessions. Data generated in one session is not saved for use in the next session with that client.

serverless/functions/concepts.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ A queue trigger is a mechanism that connects a function to a queue created with
109109
For each message that is sent to a queue, the trigger reads the message and invokes the associated function with the message as the input parameter.
110110
The function can then process the message and perform any required actions, such as updating a database or sending a notification.
111111

112+
## Rolling update
113+
114+
hen deploying a new version of a Serverless Function, a rolling update happens by default. This means that the new version of the service is gradually rolled out to your users without downtime.
115+
Here is how it works:
116+
117+
* When a new version of your function 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.
118+
* Once the new version is successfully running, we gradually shifts all traffic to it, ensuring zero downtime.
119+
* The old version is decommissioned once the new version is fully serving traffic.
120+
121+
This process ensures a seamless update experience, minimizing disruption to users 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.
122+
112123
## Runtime
113124

114125
The runtime is the execution environment of your function. Regarding Serverless Function, it consists of the languages in which your code is written.

0 commit comments

Comments
 (0)