Skip to content

Set service CPU and memory

Use resource minimums and maximums to control how much CPU and memory your service needs and can use. Choose values based on measured usage and the capacity available in your hosting environment.

Before you begin

  • You need write access to the environment.
  • Repository and container registry credentials must be configured and successfully verified. Follow any credential warnings shown on the service page.
  • The service's deployment configuration must be available. If Resources shows Unavailable, the editor is disabled.

Resource settings

See Understand CPU and memory for how minimums reserve capacity, maximums limit usage, and what happens when a limit is reached. Service settings apply to each running copy of the service.

Valid values

  • CPU: enter a vCPU count with up to 2 decimal places, such as 0.12, 0.5, or 2. Both min and max must be between 0.01 vCPU and 4 vCPU.
  • Memory: enter a whole number of MB, such as 512 or 2048. Both min and max must be between 1 MB and 8192 MB.
  • All four fields are required. Each min must be less than or equal to its corresponding max.

Upper bounds are checked when you save changes or finish creating a service. If an amount is too high, the error appears beneath its field so you can correct it and retry.

Set resources when creating a service

On the new service wizard's Service configuration step, use Advance resource configuration to set CPU and memory before the first deployment. If you leave these settings unchanged, the service uses 0.1 vCPU min / 1 vCPU max and 128 MB min / 512 MB max.

For a service that needs more memory at startup, you could use 256 MB min / 1024 MB max while keeping the CPU defaults. Use measured usage to choose settings that fit your hosting environment.

These settings apply when the service is first deployed. Review Resources on the service overview and check the deployment to confirm the result. You can change these values later with Edit resources.

Change resources

Use Edit resources under Resources on the service's Overview. Set CPU min and CPU max in vCPU, and Memory min and Memory max in MB.

Saving records your settings for deployment. Review the saved values under Resources, then check the deployment to confirm they have taken effect.

Example settings

This example allows the service to use more resources than it reserves. Adjust the values for your service.

Field Enter Unit
CPU min 0.12 vCPU
CPU max 2 vCPU
Memory min 512 MB
Memory max 2048 MB

After saving, the overview shows 0.12 vCPU min / 2 vCPU max for CPU and 512 MB min / 2048 MB max for memory.

Check the deployment

Saving records your settings, but applying them to the running service can take time.

On Deployment, Manifest synchronisation shows whether your saved settings have been applied. Wait for Up to date and for Service health to show Healthy. Together, these indicate that the changes have been applied and the service is running normally.

Use Synchronize manifest to apply saved settings when Synchronize automatically is turned off. For services using manual promotion, synchronization applies saved settings with the last successfully promoted image, without requiring another build or a newer release. Wait for any active promotion to finish first. See Apply configuration changes.

Updates with attached storage

  • Only successfully provisioned storage volumes with Healthy status can be selected when creating a service or adding a storage mount. Volumes that are not healthy appear greyed out and cannot be selected.
  • An Exclusive storage volume that already has a mount cannot be attached again. Hover over the warning icon to see why a volume cannot be attached.
  • Wait for provisioning to finish before attaching a new volume. If a volume shows Error or Missing, contact your administrator to resolve the problem before using it.
  • Editing an existing mount changes its path or access while keeping the same storage volume. To use another volume, remove the existing mount and add a new one.

On a storage volume, Details shows its status, size, tier and creation date. Used by lists the services using the volume, their mount paths and whether access is read-only or read/write. An empty list means no services are using the volume.

Standard storage volumes can be created and expanded up to 100 GB. The Storage form shows the minimum size supported in your environment. A volume's size can be increased but not reduced.

Default settings

The new service wizard pre-fills these values. They are used when you leave Advanced configuration unchanged:

Resource Min Max
CPU 0.1 vCPU 1 vCPU
Memory 128 MB 512 MB

Check a service's current settings before changing them.

Troubleshooting

What you see What to check
Edit resources is disabled Confirm write access, resolve credential warnings, and check that the deployment configuration is available. Both repository and container registry credentials are required by the service editor.
An error beneath an input Enter all four positive values, use at most 2 decimal places for CPU and whole MB amounts for memory, and check that each min is within its max.
A save error notification Read the error details and check repository access.
Saved settings have not taken effect Check Manifest synchronisation and whether changes need to be applied manually. Follow the deployment steps above.
The updated service is unhealthy or cannot start Check the service's logs and resource usage for startup or memory problems. Contact your administrator if the service still cannot start or your environment lacks the requested capacity.