NavigationContentFooter
Jump toSuggest an edit
Was this page helpful?

Functions sandbox

Reviewed on 13 March 2025Published on 12 October 2021

In the context of Scaleway Serverless Functions, a Sandbox environment 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 v1Link to this anchor

Sandbox v1 is Serverless Functions’ legacy sandboxing environment with slower cold starts, but fully supports Linux system call interface.

Important

Sandbox v1 is 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.

Sandbox v2Link to this anchor

Sandbox v2 is a modern isolation environment that relies on gVisor. This option offers faster cold starts, but only implements a selection of Linux syscalls. Refer to the official gVisor documentation for a comprehensive list of supported syscalls.

Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2025 – Scaleway