Question

App platform pricing for multiple instance creation/deletion

Posted June 19, 2021 178 views
DigitalOcean App PlatformPaaS

Hello everyone!

I’m currently calculating the cost of using the App Platform for our review environments. I’m not sure how the pricing model will work for these kind of environments. These environments are spawn on the fly every time a new MR is ready to be reviewed. Once the MR is merged the review environment would be deleted.

Let’s take example of an app which contains:

  • A dynamic frontend (NextJS or whatnot)
  • One backend API
  • A development database

Based on the requirements above we’ll probably create 2 basic instances and one database development add-on to host one of this app.

Let’s say there are 2 developers working on that app and each one opens 2 MR per day. Each MR review env will be up for 45min. We’ll consider these developers work 20 days per month.

How will the pricing model work in that case? I see two scenarios:

  1. DO will sum up the time each of these instances were up and bill according to that total which would look something like that:
    2 developers * 2 MR/day * 45min each MR = 180min uptime per day per instance.
    180min * 20days = 3600min uptime per month per instance
    2 basic instances * ($5 / 672 hours) * (3600min / 60) = ~$0.89 for 2 basic instances up for 60h each during the month.
    1 dev database * ($7 / 672 hours) * (3600min / 60) = $0.625 for 1 dev database up for 60h during the month.
    The total would sum up to $1.5 for a whole month of that app review env.

  2. Each of the review env spawn by the developer MRs exist in parallel. It’s not only one env that will be up consistently for the whole time of their usage. We will actually spawn 4 sets of these 3 instances every day. Since each instance is independent and is up only 45min their uptime will be rounded up to 1h. The calculation would look like this:
    2 developers * 2 MR/day * 1h each MR = 4h uptime per day per instance.
    4h * 20 days = 80h uptime per month per instance
    2 basic instances * ($5 / 672 hours) * 80h = ~$1.19
    1 dev database * ($7 / 672h) * 80h = $0.83
    The total would sum up to $2.02 for a whole month of that app review env.

Notes: Regarding the 672h, I found the information here: https://www.digitalocean.com/community/questions/pricing-for-app-platform?answer=68875.

Thank you for your help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there @jpauthier,

Unlike Droplets where the pricing is based on an hourly rate rather than per minute, the App platform is actually the first DigitalOcean product that is not billed hourly but per second with a minimum of 1 minute. This is true for the static sites as well as the containers.

So your calculation in scenario one would be the correct sum.

This has been flagged and the pricing will be updated accordingly on the official App documentation page.

Each instance is considered a separate service, so it will be billed separately from other instances.

Hope that this helps.
Regards,
Bobby

  • Hello @bobbyiliev,

    Thank you for your answer. That’s the behavior I expected also but I preferred to be sure.

    Regards,
    Jonas.

    • Hi there,

      No problem at all! Happy to help!

      Regards,
      Bobby

    • Hi there Jonas,

      I have been just informed that the App platform is actually the first DigitalOcean product that is not billed hourly but per second with a minimum of 1 minute. This is true for the static sites as well as the containers.

      So your calculation in scenario one would be the correct sum.

      This has been flagged and the pricing will be updated accordingly on the official App documentation page.

      Sorry about the misunderstanding here and thank you for bringing this up!

      Regards,
      Bobby