## 2.3.1.5 Service Plans and Metering for Cloud Foundry Runtime
This page explains the relationship between the service plans in the SAP Discovery Center and those in the SAP BTP cockpit, and provides information to help you understand how the service is billed.
## Service
## Overview
The diagram below shows how the service plans listed in the SAP Discovery Center correspond to the plans you choose in the SAP BTP cockpit, depending on the commercial model of your enterprise global account. For more information about the commercial models offered by SAP, see Commercial Models [page 103].
This image is interactive. Hover over rectangles in the diagram to see the description. Choose the highlighted areas for more information.
<!-- image -->
- https:/ /discovery-center.cloud.sap/serviceCatalog/cloud-foundry-runtime? region=all&amp;tab=service\_plan&amp;commercialModel=btpea [https:/ /discovery-center.cloud.sap/ serviceCatalog/cloud-foundry-runtime?region=all&amp;tab=service\_plan&amp;commercialModel=btpea]
- Restricting the Usage of Standard Plan for Cloud Foundry Runtime
- Enabling Standard Plan for Cloud Foundry Runtime (Consumption-Based)
- Metrics [page 72]
- (optional) Adjusting Runtime Memory Quota for Cloud Foundry Runtime (Consumption-Based)
- https:/ /discovery-center.cloud.sap/serviceCatalog/cloud-foundry-runtime? region=all&amp;tab=service\_plan&amp;commercialModel=btpea [https:/ /discovery-center.cloud.sap/ serviceCatalog/cloud-foundry-runtime?region=all&amp;tab=service\_plan&amp;commercialModel=btpea]
- Assigning Free Service Plan with Runtime Memory Quota for Cloud Foundry Runtime
- Enabling Free Plan for Cloud Foundry Runtime
- Metrics [page 72]
- https:/ /discovery-center.cloud.sap/serviceCatalog/cloud-foundry-runtime? region=all&amp;tab=service\_plan&amp;commercialModel=subscription [https:/ /discovery-center.cloud.sap/ serviceCatalog/cloud-foundry-runtime?region=all&amp;tab=service\_plan&amp;commercialModel=subscription]
- Restricting the Usage of Standard Plan for Cloud Foundry Runtime
- Enabling Standard Plan for Cloud Foundry Runtime (Subscription-Based)
- Metrics [page 72]
- Assigning Runtime Memory Quota for Cloud Foundry Runtime (Subscription-Based)
## Service Plan (SAP BTP Cockpit)
Environment Plan (SAP BTP Cockpit)
The plan that the global account administrator can assign to a subaccount or a directory on the Entitlements Entity Assignments page by choosing Edit Add Service Plans .
<!-- image -->
Screenshot: Assigning a service plan to a subaccount in SAP BTP cockpit
For general information about the procedure, see Configure Entitlements and Quotas for Subaccounts [page 2269] or Configure Entitlements and Quotas for Directories [page 2264].
##  Note
The greyed out parts of the diagram indicate service plans that are automatically assigned to all subaccounts by default.
The plan that the subaccount administrator can select on the Overview page of a subaccount when choosing Enable Cloud Foundry .

Tip
Choose  Zoom In for the full-sized version of the screenshot.
<!-- image -->
Screenshot: Selecting an environment plan for the subaccount in SAP BTP cockpit For general information about the procedure, see Create Orgs [page 2514].
##  Note
An environment plan is a service plan associated with an environment. For more information about services and service plans, see Entitlements and Quotas [page 117].
Diagram captions: Service plans and environment plans in SAP BTP cockpit [Show/Hide]
## Service Plans
The tables below provide details about the plans for SAP BTP, Cloud Foundry runtime. They can give you more context for understanding the diagram in the Overview section.
Table 1: Plans for Consumption-Based Commercial Model [Show/Hide]
| Service Plan (SAP Discovery Center)   | Service (SAP BTP Cockpit: Entity Assignments )   | Service Plan (SAP BTP Cockpit: Entity Assignments )   | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )   | Explanation                                                                                                                                                                                                                                                                                                                                                                                                             |
|---------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Standard                              | Cloud Foun- dry Environment ( cloudfoundry )     | standard                                              | standard                                                    | The plans standard and MEMORY are used together to allow you to deploy and run applications in the Cloud Foundry environ- ment.                                                                                                                                                                                                                                                                                         |
|                                       |                                                  |                                                       |                                                             | • standard : this plan al- lows you to create a Cloud Foundry org in a subaccount. By itself , the action of creating a Cloud Foundry org is free. However, when you run applications in it, you pay for the run- time memory that they use. • MEMORY : this plan is used to assign runtime memory quota to a subaccount. The run- time memory can then be consumed by ap- plications that run in the Cloud Foundry org |
| Service Plan (SAP Discovery Center)   | Service (SAP BTP Cockpit: Entity Assignments )   | Service Plan (SAP BTP Cockpit: Entity Assignments )   | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )   | Explanation                                                                                                                                                                                                                                                                                                                                                                                                    |
|---------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                       | Cloud Foundry Run- time ( APPLICATION_RUN TIME ) | MEMORY                                                |                                                             | your enterprise global account. In the consumption-based commercial model, a de- fault runtime memory quota of 200 GBis auto- matically assigned to all subaccounts, and the bill- ing is based on the actual runtime memory usage. For more information, see Serv- ice Specifics [page 74]. For information on how to set up the plan, see Stand- ard Plan for Cloud Foun- dry Runtime (Consump- tion-Based). |
<!-- image -->
| Service Plan (SAP Discovery Center)   | Service (SAP BTP Cockpit: Entity Assignments )   | Service Plan (SAP BTP Cockpit: Entity Assignments )   | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )   | Explanation                                                                                                                                                                                                                                                                                                                                                  |
|---------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Free                                  | Cloud Foun- dry Environment ( cloudfoundry )     | free (Environment)                                    | free                                                        | This is a free tier plan that allows you to try out and evaluate the service. For more information, see Using Free Service Plans [page 108]. When you create a Cloud Foundry org with the free plan, you also get a limited free quota of runtime mem- ory for it. The amount of such orgs that can be cre- ated in an enterprise global account is limited. |
|                                       |                                                  |                                                       |                                                             |  Note Only community sup- port is available for free tier service plans and these are not subject to SLAs. Use of free tier service plans is subject to additional terms and conditions as provided in the Business Tech- nology Platform Sup- plemental Terms and Conditions .                                                                             |
<!-- image -->
| Service Plan (SAP Discovery Center)                                | Service (SAP BTP Cockpit: Entity Assignments )                     | Service Plan (SAP BTP Cockpit: Entity Assignments )                | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )          | Explanation                                                                                                                                                                                            |
|--------------------------------------------------------------------|--------------------------------------------------------------------|--------------------------------------------------------------------|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| -                                                                  | Cloud Foun- dry Environment ( cloudfoundry )                       | build-runtime                                                      | build-runtime                                                      | This plan is only for us- ing the SAP BTP, Cloud Foundry runtime as part of SAP Build. For more infor- mation, see What Is SAP Build and Service Plans and Metering.                                   |
| -                                                                  | Cloud Foun- dry Environment ( cloudfoundry )                       | build-runtime                                                      | build-runtime                                                      |  Note The plan is not de- picted on the diagram in the Overview sec- tion.                                                                                                                            |
| See SAP Build Code                                                 | Cloud Foun- dry Environment ( cloudfoundry )                       | build-code                                                         | build-code                                                         | This plan is only for us- ing the SAP BTP, Cloud Foundry runtime as part of SAP Build Code. For more information, see What Is SAP Build Code.                                                          |
| See SAP Build Code                                                 | Cloud Foun- dry Environment ( cloudfoundry )                       | build-code                                                         | build-code                                                         |  Note The plan is not de- picted on the diagram in the Overview sec- tion.                                                                                                                            |
| Table 2: Plans for Subscription-Based Commercial Model [Show/Hide] | Table 2: Plans for Subscription-Based Commercial Model [Show/Hide] | Table 2: Plans for Subscription-Based Commercial Model [Show/Hide] | Table 2: Plans for Subscription-Based Commercial Model [Show/Hide] | Table 2: Plans for Subscription-Based Commercial Model [Show/Hide]                                                                                                                                     |
| Service Plan (SAP Discovery Center)                                | Service (SAP BTP Cockpit: Entity Assignments )                     | Service Plan (SAP BTP Cockpit: Entity Assignments )                | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )          | Explanation                                                                                                                                                                                            |
| Standard                                                           | Cloud Foun- dry Environment ( cloudfoundry )                       | standard                                                           | standard                                                           | The plans standard and MEMORY are used together to allow you to deploy and run applications in the Cloud Foundry environ- ment. • standard : this plan al- lows you to create a Cloud Foundry org in a |
| Service Plan (SAP Discovery Center)   | Service (SAP BTP Cockpit: Entity Assignments )   | Service Plan (SAP BTP Cockpit: Entity Assignments )   | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )   | Explanation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
|---------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                       | Cloud Foundry Run- time ( APPLICATION_RUN TIME ) | MEMORY                                                |                                                             | subaccount. By itself , the action of creating a Cloud Foundry org is free. However, when you run applications in it, you pay for the run- time memory that they use. • MEMORY : this plan is used to assign runtime memory quota to a subaccount. The run- time memory can then be consumed by ap- plications that run in the Cloud Foundry org created with the plan standard . The usage of runtime memory by applications is bill- able according to the commercial model of your enterprise global account. In the subscription-based commercial model, a pre- defined amount of runtime memory is paid for in advance and then gets used. For more information, see Service Specifics [page 74]. For information on how to set up the plan, see Stand- ard Plan for Cloud Foun- |
<!-- image -->
| Service Plan (SAP Discovery Center)   | Service (SAP BTP Cockpit: Entity Assignments )   | Service Plan (SAP BTP Cockpit: Entity Assignments )   | Environment Plan (SAP BTP Cockpit: Enable Cloud Foundry )   | Explanation                                                                                                                                                          |
|---------------------------------------|--------------------------------------------------|-------------------------------------------------------|-------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| -                                     | Cloud Foun- dry Environment ( cloudfoundry )     | build-runtime                                         | build-runtime                                               | This plan is only for us- ing the SAP BTP, Cloud Foundry runtime as part of SAP Build. For more infor- mation, see What Is SAP Build and Service Plans and Metering. |
| -                                     | Cloud Foun- dry Environment ( cloudfoundry )     | build-runtime                                         | build-runtime                                               |  Note The plan is not de- picted on the diagram in the Overview sec- tion.                                                                                          |
| See SAP Build Code                    | Cloud Foun- dry Environment ( cloudfoundry )     | build-code                                            | build-code                                                  | This plan is only for us- ing the SAP BTP, Cloud Foundry runtime as part of SAP Build Code. For more information, see What Is SAP Build Code.                        |
| See SAP Build Code                    |                                                  |                                                       |                                                             |  Note The plan is not de- picted on the diagram in the Overview sec- tion.                                                                                          |
## Metrics
The table below provides details about the metrics for SAP BTP, Cloud Foundry runtime. It includes the names of services, with which the metrics are associated on the pages Usage or Costs and Usage (accessed from the global account level) and Usage Analytics (accessed from the subaccount level) in the SAP BTP cockpit.
| Metric             | Service (SAP BTP Cockpit)   | Metric (SAP BTP Cockpit)   | Definition                                                                                                                                                                                                                             | Additional Information                                                                                                                                                                                                                                                                                                                                                                                                           |
|--------------------|-----------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| GBMem ory          | Cloud Foun- dry Runtime     | GBMemory                   | Temporary memory bank where computers store data that needs to be retrieved and processed quickly. The memory represents the size of the data that can be processed and CPU repre- sents the speed at which the data can be retrieved. | For billing purposes, the GBMemory metric for the Cloud Foundry Runtime service is calculated as the total hourly usage of Cloud Foundry runtime mem- ory across all spaces in the global ac- count over a calendar month, divided by 730 hours and rounded up to the next full GB. For an example of such cal- culation, see Consumption Monitoring.  Note In the Cloud Foundry environment, applications get a guaranteed CPU |
| Ca- pac- ity Units | SAP Build                   | GBMemory                   |                                                                                                                                                                                                                                        | In SAP Build, the usage of SAP BTP, Cloud Foundry runtime is measured in capacity units. The GBMemory metric for the SAP Build service in the SAP BTP cockpit is intended only for mon- itoring the approximate usage of SAP BTP, Cloud Foundry runtime in GBwhen it's consumed as part of SAP Build. For more information, see What Is SAP Build.                                                                               |
|                    |                             |                            |                                                                                                                                                                                                                                        |  Note The metric is not depicted on the diagram in Service [page 64].                                                                                                                                                                                                                                                                                                                                                           |
| Metric   | Service (SAP BTP Cockpit)   | Metric (SAP BTP Cockpit)   | Definition   | Additional Information                                                                                                                                                                                                                                                                                                                                                                                               |
|----------|-----------------------------|----------------------------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|          | SAP Build Code              | CFRuntime                  |              | In SAP Build Code, the usage of SAP BTP, Cloud Foundry runtime is meas- ured in capacity units. The CF Runtime metric for the SAP Build Code service in the SAP BTP cockpit is intended only for monitoring the approximate usage of SAP BTP, Cloud Foundry runtime in GBwhen it's consumed as part of SAP Build Code. For more information, see What Is SAP Build Code and SAP Build Code Capacity Unit Calculator. |
|          |                             |                            |              |  Note The metric is not depicted on the diagram in Service [page 64].                                                                                                                                                                                                                                                                                                                                               |
## Service Specifics
In the context of SAP BTP, Cloud Foundry runtime, the terms consumption (or consume ) and usage (or use ) refer to the runtime memory quota reserved by the platform for each application instance. This quota serves as the basis for calculating the billable consumption, as explained in Consumption Monitoring.
##  Caution
From a billing standpoint, it doesn't matter how much of the reserved runtime memory quota is utilized when the application is running. Billable consumption is calculated based on the full amount of runtime memory reserved, regardless of how much runtime memory actually gets utilized.
##  Note
If an application is stopped, it doesn't reserve any runtime memory and, therefore, doesn't contribute to runtime memory consumption.
There are two application settings that define how much runtime memory an application uses at any given time:
- Runtime memory quota reserved for each application instance (default: 1024 MB)
- Number of running application instances (default: 1)
##  Note
The total amount of runtime memory that an application uses when all of its instances are running is displayed on the application's Overview page under All Instances Memory .
You can specify custom values for these settings when deploying an application in the Cloud Foundry environment. You can also change them for an application that has already been deployed without having to redeploy it.
## How to set runtime memory quota and number of instances when deploying applications
- Option 1: Create a manifest YAML file and specify the following application attributes:
- memory : runtime memory quota per application instance
- instances : number of application instances
For more information about the manifest formatting, see https:/ /docs.cloudfoundry.org/devguide/deployapps/manifest-attributes.html .
You can then deploy your application with the manifest in one of two ways:
- Using the SAP BTP cockpit: Deploy an Application [page 2580]
- Using the Cloud Foundry CLI: https:/ /docs.cloudfoundry.org/devguide/deploy-apps/manifest.html
- Option 2: In the SAP BTP cockpit, choose Deploy Application , select Custom Settings and specify the following:
- Memory per Instance (MB) : runtime memory quota per application instance
- Number of Instances : number of application instances
For more information about the procedure, see Deploy an Application [page 2580].
- Option 3: In the Cloud Foundry CLI, use the command cf push with the following flags:
- -m : runtime memory quota per application instance
- -i : number of application instances
For more information about the procedure, see https:/ /docs.cloudfoundry.org/devguide/deploy-apps/ deploy-app.html#custom-push .
## How to change runtime memory quota and number of instances for already deployed applications
- Option 1: In the SAP BTP cockpit, on the Overview page of the application you can:
- Change the runtime memory quota per application instance under Change Instance Details Memory per Instance (MB)
- Change the number of application instances as described in Manage Application Instances [page 2583]
- Option 2: In the Cloud Foundry CLI, you can use the command cf scale with the following flags:
- -m : change the runtime memory quota per application instance
- -i : change the number of application instances
For more information about the procedure, see https:/ /docs.cloudfoundry.org/devguide/deploy-apps/cfscale.html .
You can use the Application Autoscaler to automatically increase or decrease the number of application instances based on the policies you have defined. For more information, see What Is Application Autoscaler.
##  Tip
For tips on how to optimize the consumption of runtime memory, see the blog post Optimise your SAP BTP, Cloud Foundry runtime costs . Note that while the general principles outlined in the blog post still apply, some of the UI texts and parameter names may have changed.
## Supplemental Terms and Conditions
For more information, see the section SAP BTP, Cloud Foundry Runtime in the SAP Business Technology Platform Service Description Guide .
## Glossary
Commercial Information Glossary