In this video, the speaker explains how to assign memory quotas to spaces in BTP Cloud Foundry. These quota's control the amount of memory each space can consume, ensuring that new applications are not deployed once the limit is reached. A simple rule is presented for determining memory allocation, such as allocating half of the memory to the instance and using this to calculate the number of services that can be deployed. The speaker also introduces a T-shirt sizing analogy to describe different memory quotas, scaling from small to extra-large sizes as memory requirements increase.
Takeaways
- Quota defines the memory consumption limit for a space, and once it’s reached, no new applications can be deployed.
- The rule of thumb for assigning quotas suggests allocating half of the memory for instance memory.
- For 1 GB of memory, an average of 40 services can be deployed, which translates to 20 routes per 1 GB of memory.
- The memory allocation rule helps in controlling resource consumption and ensuring that applications don’t exceed available memory.
- The allocation of memory follows a T-shirt size analogy (Small, Medium, Large, Extra Large) for different quota levels.
- When moving from 1 GB to 2 GB, the number of services and memory allocation are multiplied to maintain the balance.
- The calculation and rule of thumb remain consistent even when increasing memory sizes (e.g., from 1 GB to 2 GB, 2 GB to 4 GB).
- The rule of thumb applies to different memory sizes, up to 12 GB, beyond which further scaling might not be needed or practical.
- The approach helps ensure a consistent and predictable method for assigning quotas, making it easier to manage application deployment and memory usage.