Compute
You can configure compute resources for your service like this:- dashboard
- toml

- The value of the
memoryparameter must be exactly 2,048 times the value of the cpu parameter. - The value of the memory parameter must be within the range of 128 to 7,168 (inclusive).
nhost run config-validate command to verify your values are correct.
Storage
By default a container’s disk is ephemeral so data isn’t persisted across reboots. If your service needs persistent storage you can attach one or more SSD disks by adding the following configuration:- dashboard
- toml

database will have a capacity of 10 GiB and will be mounted at /var/lib/db. The second disk named data will have a capacity of 1 GiB and will be mounted at “/mnt/data.
It’s important to note that disks are unique to each service and cannot be shared across multiple services.
Pausing a service
To pause a service, simply set its number of replicas to0:
- dashboard
- toml

While the service is paused, computing costs will not be charged. However, storage costs will continue to apply.