> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pxxl.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Compute and scaling

> Give a project more CPU and memory, run more replicas, keep files on volumes with backups, and turn on autoscaling.

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.](https://mintcdn.com/pxxl/BmMwkLenE04VSQYP/images/project-compute.jpeg?fit=max\&auto=format\&n=BmMwkLenE04VSQYP\&q=85\&s=b84f17129f270fa202ff8ad22045a0d4)

## Resources

Click **Scale Up Server** to change resources. The form shows what the project uses now and your plan's maximum.

| Setting | Steps | Minimum |
| - | - | - |
| **CPU** | 0.5 vCPU | 0.5 vCPU |
| **Memory** | 0.5 GB | 0.5 GB |
| **Replicas** | 1 | 1 instance, plus extra replicas up to your plan's limit |

Plan maximums per instance and for extra replicas:

| Plan | CPU per instance | Memory per instance | Extra replicas |
| - | - | - | - |
| Free | 0.5 vCPU | 0.5 GB | Can only lower resources |
| Plus | 2 vCPU | 4 GB | 2 |
| Pro | 2 vCPU | 4 GB | 5 |
| Enterprise | 4 vCPU | 8 GB | 10 |

Increases are charged to your [wallet](https://docs.pxxl.app/account/wallet.md) 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](https://docs.pxxl.app/databases/overview.md), and files in [Storage](https://docs.pxxl.app/storage/overview.md) 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:

| View | What's there |
| - | - |
| **Overview** | Name, mount path and how full it is. |
| **Usage** | Disk use over time. |
| **Backups** | The backup schedule, how long backups are kept, every backup with its size, **Back up now**, download, and restore. |

### 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](https://docs.pxxl.app/networking/regions.md) yet.
* **Clear** deletes everything in a volume. It can't be undone, except by restoring a backup.

> [!TIP]
>
> 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](https://docs.pxxl.app/storage/overview.md) 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

> [card] [Logs, analytics and monitoring](https://docs.pxxl.app/projects/observability.md)
>
> Check CPU and memory before scaling.

> [card] [Plans](https://docs.pxxl.app/account/plans.md)
>
> Compare plan limits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.