All plan resource limits are measured as an accumulation of all your applications. This means we count the consumption and allocated resources from all your services and projects and then compare them to the limits of your plan. If your plan allows 1GB of memory and you only have on service with 0.5GB of memory, you could either create another service with 0.5GB of memory or you could give that first service 1GB. 

Types of Resources

It is also important to understand the difference between consumed and allocated resources.

Consumed Resources: Usage based on the amount consumed of that resource by your applications. For example, storage or transfer are resources that we only count if they are used up by your applications. All consumed resources are reset at the beginning of a new billing cycle. (Transfer, Storage)

Allocated Resources: Usage based on the amount allocated of that resource to your application. This means, you assign a resource amount to each service or project and it is counted against your total usage even if that service or project does not consume the total amount of that allocated resource. For example, you must assign an amount of memory or number of CPUs for each service and it will count against your plan even if your service does not consume the entire amount. (CPU, Memory, Projects, Instances, Custom Domains, Collaborators)

Fractioning Your Resources

In order to give you full control of your resources, we give you the capability of fractionating your CPU and Memory usage. This means you could assign 40% of one CPU, or just 256MB of memory. Below are examples of how you can allocate those resources in your wedeploy.json 

CPU

{
    "id": "app",
    "cpu": 0.4
}

Memory

{
    "id": "app",
    "memory": 256
}
Did this answer your question?