Skip to main content
The Compute & Scaling tab sets how much CPU and memory each instance of your app gets, how many instances run, and the volumes that keep files between deployments. Use it when your app runs out of memory, gets slow under load, or needs to store files. Open a project, then Compute & Scaling. The tab isn’t shown for static sites, which are served from the Pxxl edge and don’t need compute.
The Compute & Scaling tab showing the project's CPU, memory and replicas, its volumes and the autoscaling card.

Resources

Click Scale Up Server to change resources. The form shows what the project uses now and your plan’s maximum. Plan maximums per instance and for extra replicas: Increases are charged to your wallet for the time they’re in use. The form shows the cost before you confirm.

More replicas or bigger instances?

  • Bigger instance when one request needs more memory or CPU, such as image processing or a large in-memory cache.
  • More replicas when you have many small requests. Pxxl spreads traffic across replicas, and one failing instance doesn’t take the app down.
Replicas don’t share memory or local files. Keep sessions and caches in a database or Redis, and files in Storage or a volume.

Volumes

A volume is disk space that survives deployments and restarts. Without one, everything your app writes inside its container is lost on the next deploy.
1

Add a volume

In Volumes, choose Add volume.
2

Name it and pick the mount path

Give it a name and the folder your app writes to, such as /app/uploads or /data.
3

Write to that folder

Your app reads and writes the mount path as a normal folder. Files there survive every deploy.
Click a volume to see:

Backups and restore

Volumes are backed up automatically every few hours. The Backups view shows the exact schedule and how many days backups are kept, which depends on your plan. The newest backup is always kept. To restore, choose Restore on a backup. Pxxl first takes a safety backup of the current contents, then restarts the app with the restored files.

Volume limits

  • Volumes need a paid plan.
  • A volume belongs to one project.
  • A project with a volume can’t move to another region yet.
  • Clear deletes everything in a volume. It can’t be undone, except by restoring a backup.
Use a volume for files the app manages itself, like a SQLite file or uploads you process. For user uploads you serve to browsers, Storage is usually better: it’s served from the edge and doesn’t tie the app to one region.

Autoscaling

Autoscaling adds replicas when your app is under load and removes them when load drops, up to the plan’s replica limit. It’s on Enterprise. Turn it on with Turn on in the Autoscaling card. While it runs, the card shows the live replicas and how traffic is split between them.

Where to go next

Logs, analytics and monitoring

Check CPU and memory before scaling.

Plans

Compare plan limits.