How are mounts in .platform.app.yaml sized?
Platform.sh DevRel
Is everything OK as long as the total size of the mounts is less than the value in the disk directive?
https://docs.platform.sh/configuration/app/storage.html#mounts
0
Comments
Mount sizes are defined with the
diskkey in your.platform.app.yamlconfiguration file.Mounts are entirely optional - it may not be necessary for your application to have write access. If not, you will still need to define the
diskkey in.platform.app.yamlto the minimum requirementsdiskdefines the size of the persistent disk of the application (in MB), and you will receive a validation error if you attempt to set it lower than 256MB.Once your mounts are defined with the
diskkey, all mounts will share the amount of disk you allocate to them.For example, in a
.platform.app.yamlfile that configures its mounts withThe mounts at
mnt/privateandmnt/uploadswill be accessible in the/appdirectory atprivateandweb/uploads, and they will together share a maximum of 1024 MB.If you go over that total amount between them, then you will need to expand this pre-allocated disk space in the
.platform.app.yamldiskkey.You can observe the disk space used by each application mount using the Platform.sh CLI:
Please sign in to leave a comment.