-
Notifications
You must be signed in to change notification settings - Fork 259
docs(srv): update doc on sandbox environments MTA-6006 #4918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1e2bf57
docs(srv): update doc on sandbox environments MTA-6006
SamyOubouaziz cdd732f
docs(srv): update
SamyOubouaziz 1cb6731
docs(srv): update
SamyOubouaziz 8670248
docs(srv): update
SamyOubouaziz 7b28429
docs(srv): update
SamyOubouaziz c9e80e8
docs(srv): update
SamyOubouaziz 4bf8f48
docs(srv): update
SamyOubouaziz c17b36a
docs(srv): update
SamyOubouaziz c9783fe
docs(srv): update
SamyOubouaziz 154292a
docs(srv): update
SamyOubouaziz 305a89a
Update pages/serverless-containers/reference-content/containers-sandb…
SamyOubouaziz a5285a2
Update pages/serverless-functions/reference-content/functions-sandbox…
SamyOubouaziz be378d4
Update pages/serverless-containers/reference-content/containers-limit…
SamyOubouaziz 569cda9
Apply suggestions from code review
SamyOubouaziz 0a0aa0f
Merge branch 'main' into MTA-6006
SamyOubouaziz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
pages/serverless-containers/reference-content/containers-sandbox.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| meta: | ||
| title: Containers sandbox | ||
| description: Learn more about the sandboxing environments of Scaleway Serverless Containers. | ||
| content: | ||
| h1: Containers sandbox | ||
| paragraph: Learn more about the sandboxing environments of Scaleway Serverless Containers. | ||
| tags: containers sandbox sandboxing gvisor isolation mechanism serverless v1 v2 clock drift skew | ||
| dates: | ||
| validation: 2025-05-07 | ||
| posted: 2025-05-07 | ||
| categories: | ||
| - serverless | ||
| - containers | ||
| --- | ||
|
|
||
| In the context of Scaleway Serverless Containers, a [Sandbox environment](/serverless-containers/concepts/#sandbox) is a critical security mechanism that isolates each container from others, ensuring that they operate in a secure and controlled space. Containers run in dedicated execution environments that prevent unauthorized access and potential interference between different resources. | ||
|
|
||
| Scaleway Serverless Containers offers two sandbox environment options: | ||
|
|
||
| - Sandbox v1 (legacy) | ||
| - Sandbox v2 (recommended) | ||
|
|
||
| ## Sandbox v1 | ||
|
|
||
| Sandbox v1 is Serverless Containers' legacy sandboxing environment with slower [cold starts](/serverless-containers/concepts/#cold-start), but fully supports Linux system call interface. | ||
|
|
||
| <Message type="important"> | ||
| Sandbox v1 are known to experience clock drift over time. A difference of approximately **two seconds** can be observed after 24 hours of uninterrupted execution. This issue especially affects long-running containers, whereas short-lived containers are much less impacted. Update to sandbox v2 to solve the issue. | ||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </Message> | ||
|
|
||
| ## Sandbox v2 | ||
|
|
||
| Sandbox v2 is a modern isolation environment that relies on [gVisor](https://gvisor.dev/). This option offers faster [cold starts](/serverless-containers/concepts/#cold-start), but only implements a selection of Linux syscalls. | ||
| Refer to the [official gVisor documentation](https://gvisor.dev/docs/user_guide/compatibility/linux/amd64/) for a comprehensive list of supported syscalls. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
pages/serverless-containers/troubleshooting/container-clock-drift.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| meta: | ||
| title: I am experiencing clock drift with my container | ||
| description: Discover the causes and solutions to clock drift issues in Scaleway Serverless Containers. | ||
| content: | ||
| h1: I am experiencing clock drift with my container | ||
| paragraph: Discover the causes and solutions to clock drift issues in Scaleway Serverless Containers. | ||
| tags: containers clock drift skew error time difference serverless troubleshooting | ||
| dates: | ||
| validation: 2025-05-07 | ||
| posted: 2025-05-07 | ||
| categories: | ||
| - serverless | ||
| - containers | ||
| --- | ||
|
|
||
| ## Problem | ||
|
|
||
| The clock of my Serverless Container is slowly drifting. | ||
|
|
||
| ## Cause | ||
|
|
||
| The internal clock of a Serverless Container executed in a [Sandbox v1](/serverless-containers/reference-content/containers-sandbox/) environment is known to slowly drift over time, to reach a clock skew of approximately **two seconds** after 24 hours. | ||
|
|
||
| ## Solution | ||
|
|
||
| [Update the sandbox environment](/serverless-containers/how-to/manage-a-container/#how-to-manage-a-container-deployment) of your Serverless Container to [Sandbox v2](/serverless-containers/reference-content/containers-sandbox/#sandbox-v2) to solve clock drift issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
pages/serverless-functions/reference-content/functions-sandbox.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| meta: | ||
| title: Functions sandbox | ||
| description: Learn more about the sandboxing environments of Scaleway Serverless Functions. | ||
| content: | ||
| h1: Functions sandbox | ||
| paragraph: Learn more about the sandboxing environments of Scaleway Serverless Functions. | ||
| tags: functions sandbox sandboxing gvisor isolation mechanism serverless v1 v2 clock drift skew | ||
| dates: | ||
| validation: 2025-03-13 | ||
| posted: 2021-10-12 | ||
| categories: | ||
| - serverless | ||
| - functions | ||
| --- | ||
|
|
||
| In the context of Scaleway Serverless Functions, a [Sandbox environment](/serverless-functions/concepts/#sandbox) is a critical security mechanism that isolates each function from others, ensuring that they operate in a secure and controlled space. Functions run in dedicated execution environments that prevent unauthorized access and potential interference between different resources. | ||
|
|
||
| Scaleway Serverless Functions offers two sandbox environment options: | ||
|
|
||
| - Sandbox v1 (legacy) | ||
| - Sandbox v2 (recommended) | ||
|
|
||
| ## Sandbox v1 | ||
|
|
||
| Sandbox v1 is Serverless Functions' legacy sandboxing environment with slower [cold starts](/serverless-functions/concepts/#cold-start), but fully supports Linux system call interface. | ||
|
|
||
| <Message type="important"> | ||
| Sandbox v1 are known to experience clock drift over time. A difference of approximately **two seconds** can be observed after 24 hours of uninterrupted execution. This issue especially affects long-running functions, whereas short-lived functions are much less impacted. Update to sandbox v2 to solve the issue. | ||
SamyOubouaziz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </Message> | ||
|
|
||
| ## Sandbox v2 | ||
|
|
||
| Sandbox v2 is a modern isolation environment that relies on [gVisor](https://gvisor.dev/). This option offers faster [cold starts](/serverless-functions/concepts/#cold-start), but only implements a selection of Linux syscalls. | ||
| Refer to the [official gVisor documentation](https://gvisor.dev/docs/user_guide/compatibility/linux/amd64/) for a comprehensive list of supported syscalls. | ||
27 changes: 27 additions & 0 deletions
27
pages/serverless-functions/troubleshooting/function-clock-drift.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| --- | ||
| meta: | ||
| title: I am experiencing clock drift with my function | ||
| description: Discover the causes and solutions to clock drift issues in Scaleway Serverless Functions. | ||
| content: | ||
| h1: I am experiencing clock drift with my function | ||
| paragraph: Discover the causes and solutions to clock drift issues in Scaleway Serverless Functions. | ||
| tags: functions clock drift skew serverless difference time troubleshooting | ||
| dates: | ||
| validation: 2025-05-07 | ||
| posted: 2025-05-07 | ||
| categories: | ||
| - serverless | ||
| - functions | ||
| --- | ||
|
|
||
| ## Problem | ||
|
|
||
| The clock of my Serverless Function is slowly drifting. | ||
|
|
||
| ## Cause | ||
|
|
||
| The internal clock of a Serverless Function executed in a [Sandbox v1](/serverless-functions/reference-content/functions-sandbox/) environment is known to slowly drift over time, to reach a clock skew of approximately **two seconds** after 24 hours. | ||
|
|
||
| ## Solution | ||
|
|
||
| [Update the sandbox environment](/how-to/manage-a-function/) of your Serverless Function to [Sandbox v2](/serverless-functions/reference-content/functions-sandbox/#sandbox-v2) to solve clock drift issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.