By Bluecewe
In an App Platform App Specification, the instance size and count can be specified for each service.
If they aren’t specified, the documentation states that default values are used.
Here’s a scenario:
In this scenario, would the scaling configured in the control panel be respected, or would it be changed to the defaults due to the updated spec which doesn’t specify scaling?
Thanks to anyone who can provide clarity on this matter.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
When updating the spec, we don’t consider previous versions for setting default values. In the scenario you described, the instance size and count would default to the “basic-xs” instance count 1.
When updating from the API, we recommend pulling down the latest version of the spec, applying changes to the local document, and then using that to update the API. You can download the spec from the Settings section of the website, using the API you can load the spec via “GET /v2/apps/<APP_ID>” from the [].spec field, or from doctl you can get the latest spec doctl apps get <APP_ID> -o json | jq '.[] | .spec'.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.