Skip to Content

disk-quota & memory in Cloud Foundry MTA descriptor

I am creating an MTA app for deployment to SCP Cloud Foundry. How do I decide what is the optimal values for disk-quota & memory for various modules in my application? There might be some experimentation but what are the guidelines and how to optimize this so as to not reserve too many resources?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 08, 2020 at 07:03 AM

    This is a good question, but as Wouter already mentioned, it heavily depends on your scenario.

    The Application Router has a sizing guide in the documentation that can help you a little bit. Obviously these results will be different for non-AppRouter scenarios like CAP.

    For this, I would recommend to initially allocate the 3-4x the needed resources in the beginning and to observe how much resources are actually consumed. You can do this with the SAP Cloud Platform Cockpit or the with CLI (cf app <appname> or cf top <appname>). Later, when you have a feeling how much resources you need, you can scale down/up with the "cf scale" command.

    An even more sophisticated approach would also use the SAP Web Analytics service to track how many users use your app for how long. Based on these numbers you could check if you need dynamic scaling. In this case, you could use the Application Autoscaler Service to define rules when SAP Cloud Platform should add and remove new instances based on the consumption.

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks, Marius for pointing to useful documentation.

      When I ran cf app my_timesheet, I got the below results.

      My app is of around 1 MB of size. I have 2GB of application runtime entitlement.

      In the mta.yaml I had reserved 265MB for this app. You can see it under memory above. I found out that 256MB gets deducted from my runtime quota. So memory reserve needs to be carefully chosen within the mta file. Once service is deployed, you can change the reserved memory from the Cloud Platform Cockpit as well.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.