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

# Set resources

> Flexible resources on Upsun are easy to use. Find all you need to know about resources allocation there.

You can define how much CPU, memory, and disk you want to assign to each of your service and app containers.

If you don't explicitly set resources, Upsun uses [default resources](/docs/manage-resources/resource-init) instead.
Upsun also offers several [resource initialization strategies](/docs/manage-resources/resource-init) to help you allocate resources depending on your needs and use cases.
However, for the sake of this guide, let's set resources manually.
To do so, follow these steps:

1. Run the following command:

   ```bash Terminal theme={null}
   upsun resources:set
   ```

   This launches an interactive prompt to walk you through setting up your application's resources:

   ```bash Terminal theme={null}
   upsun resources:set
   Resource configuration for the project app (123456azerty), environment main (type: production):
   +-----------------------+---------+---------+-------------+-----------+-----------+
   | App or service        | Size    | CPU     | Memory (MB) | Disk (MB) | Instances |
   +-----------------------+---------+---------+-------------+-----------+-----------+
   | myapp                   | 1       | 1       | 384         | N/A       | 1         |
   | [<additional-service>]| 0.1     | 0.1     | 128         | N/A       | 1         |
   +-----------------------+---------+---------+-------------+-----------+-----------+
   ```

2. Select the profile size you want applied to your application image. For instance, `0.1`:

   ```bash Terminal theme={null}
   App: myapp
   Choose a profile size:
      [0.1 ] CPU 0.1, memory 64 MB
      [0.25] CPU 0.25, memory 128 MB
      [0.5 ] CPU 0.5, memory 224 MB
      [1   ] CPU 1, memory 384 MB
      [2   ] CPU 2, memory 704 MB
      [4   ] CPU 4, memory 1216 MB
      [6   ] CPU 6, memory 1728 MB
      [8   ] CPU 8, memory 2240 MB
      [10  ] CPU 10, memory 2688 MB
     > 0.1
   ```

3. Define how many [instances](/docs/manage-resources/adjust-resources#horizontal-scaling) of your application container you want to deploy. For instance, `1`:

   ```bash Terminal theme={null}
   Enter the number of instances (default: 1): 1
   ```

4. To confirm your choices, select `Y`.

   Upsun grabs the previous built images from earlier, applies your resource selections to them, and deploys your full application!

   <Note>
     If the deployment fails, you may need to set the resources again.
   </Note>
