Skip to content

Resource Limits

Every app on Zerokie runs with resource limits to ensure isolation and predictable performance. You can customize these limits to match your workload.

If you do not specify limits, apps are created with:

ResourceDefault
CPU256 MHz
Memory512 MB

Use the --cpu and --memory flags when creating an app:

Terminal window
zerokie apps create \
--name my-api \
--image my-registry.com/my-api:latest \
--port 3000 \
--cpu 512 \
--memory 1024
  • --cpu sets the CPU limit in MHz.
  • --memory sets the memory limit in MB.
WorkloadRecommended CPURecommended Memory
Static site / proxy256 MHz256 MB
Node.js API512 MHz512 MB
Java / .NET service512-1000 MHz1024 MB
Data processing1000 MHz2048 MB

Start with the defaults and increase if your app shows signs of resource pressure (slow responses, OOM kills).

  • CPU: Your app is throttled when it exceeds the CPU allocation. It continues running but responds more slowly.
  • Memory: If your app exceeds its memory limit, the container is killed and restarted automatically.