Articles in this section

How to increase memory allocated to app

You can adjust the amount of memory allocated to your application (and services) using the resources key in your app configuration. The total allocated memory must stay within the limits set by your plan.

 

The resources key has the following possible options:

Name Type Default Minimum Description
base_memory integer 45 64 The base amount of memory in MB to be given to the container. Up to 1024.
memory_ratio integer 70 128 The amount of memory in MB that increases with CPU size. Up to 1024.

 

The memory allocated to the container is calculated as the base memory plus the memory ratio multiplied by the CPU: memory = base_memory + (memory_ratio * CPU).

 

Size CPU
XS 0.25
S 0.5
M 1
L 2
XL 4
2X L 8

configuration example:

.platform.app.yaml
resources: 
    base_memory: 128
    memory_ratio: 180

To review how to set resources in details, please check our Docs page.

Was this article helpful?
1 out of 6 found this helpful

Comments

0 comments

Please sign in to leave a comment.