Mikrom gives you two scaling modes for every application: a fixed replica count that you control manually, and an autoscaling policy that adjusts replicas automatically based on CPU and memory utilisation thresholds. Both modes sit on top of a platform-level scale-to-zero behaviour — when no traffic reaches your application for a period, Mikrom terminates the running microVMs and restores them on the next incoming request, keeping idle costs near zero.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mikronita/mikrom/llms.txt
Use this file to discover all available pages before exploring further.
Scale to zero is always active. Regardless of your scaling configuration, Mikrom will scale your application to zero replicas after a period of inactivity. The first request after a cold start incurs a short microVM boot latency (~125–200 ms depending on the hypervisor). If your workload cannot tolerate cold starts, set
--min 1 in your autoscaling policy to keep at least one replica warm at all times.Resource Presets Reminder
Scaling adjusts the number of replicas. Each replica is a separate microVM provisioned with the resource preset you specified at deploy time.| Resource | Available Values | Default |
|---|---|---|
| CPU cores | 1, 2, 3, 4 | 1 |
| Memory | 512M, 1G, 2G, 4G | 512M |
--cpu and --memory values. See Deploying Applications for details.
Scaling Configurations
- Fixed Replicas
- Autoscaling
Fixed scaling sets an exact replica count and disables autoscaling entirely. Mikrom will maintain that number of running microVMs regardless of traffic load, subject to the platform’s scale-to-zero override on inactivity.
Setting
| Flag | Range | Description |
|---|---|---|
--replicas | 0–3 | Desired fixed replica count; disables autoscaling |
--replicas 0 stops all instances immediately and keeps the app quiesced until you rescale or until an incoming request triggers a cold start.Passing
--replicas always disables autoscaling for that application, even if an autoscaling policy was previously configured. To re-enable autoscaling, use --auto true as shown in the Autoscaling tab.Scaling Examples
Keep one warm replica, scale up under load
This configuration ensures the application always has at least one running instance (avoiding cold starts) but can burst to three replicas when CPU exceeds 60%.Allow full scale-to-zero with memory-based autoscaling
Applications that can tolerate occasional cold starts can set--min 0 to eliminate idle costs entirely while still scaling out automatically under memory pressure.