Scale-to-Zero
LaunchVerse allows you to configure your environments to automatically Scale-to-Zero when they are idle. This serverless-like capability is perfect for development environments, internal tools, or staging branches, allowing you to save resources and reduce costs while maintaining high availability.
How it Works
- Idle Detection: The LaunchVerse Edge network constantly monitors incoming HTTP requests to your application.
- Spin Down: If an application receives zero requests over a configurable idle timeout period, the LaunchVerse Engine safely spins down the underlying container, releasing its vCPU and RAM back to your resource pool.
- Cold Start Wake-up: When a new request arrives at the Edge router, LaunchVerse instantly halts the request, wakes up your container on the Engine, and proxies the request through once the container is healthy.
Enabling Scale-to-Zero
You can enable Scale-to-Zero on a per-project or per-environment basis.
- Navigate to your Project Settings.
- Go to the Resources & Scaling tab.
- Toggle Enable Scale-to-Zero.
- Configure your Idle Timeout (e.g., 15 minutes, 1 hour).
> [!NOTE]
> Cold starts on the LaunchVerse Engine typically take between 1 to 3 seconds depending on your application size and framework (e.g., Go/Rust applications wake up significantly faster than heavy JVM or Node.js applications).
Use Cases
- Preview Environments: Automatically apply Scale-to-Zero to all PR Preview environments so you only consume compute resources when actively testing a PR.
- Staging/QA: Spin down your staging databases and API layers over the weekend when your team is offline.