Setting memory for build instances for Flex Env

41 views
Skip to first unread message

Paul Kim

unread,
Aug 16, 2018, 3:16:40 PM8/16/18
to Google App Engine
Hello,

Is there a way to increase the memory available on the build instance for the PHP Flexible Environment?  I am running out of memory during the build process when deplying, specifically on a script in composer install.

Maximiliano Contartesi

unread,
Aug 16, 2018, 3:36:06 PM8/16/18
to google-a...@googlegroups.com
You need to set this in the app.yaml

resources:
cpu: 1
memory_gb: 1
disk_size_gb: 10


El jue., 16 de ago. de 2018 a la(s) 16:16, Paul Kim (kin...@gmail.com) escribió:
Hello,

Is there a way to increase the memory available on the build instance for the PHP Flexible Environment?  I am running out of memory during the build process when deplying, specifically on a script in composer install.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/e3adc5b3-9814-4cf4-9ab2-808142407462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Kim

unread,
Aug 16, 2018, 4:05:56 PM8/16/18
to Google App Engine
Hi Maximiliano,

Thank you for the reply.  I know of those settings, they control the size of the app's GCE instances.  However, what I would like to change is the memory of cloud build instance.  This is where the build process for the container happens, which is then distributed to the application instances.

The resources directive doesn't appear to affect the size of those instances.  I'm not sure if that is currently possible.

Maximiliano Contartesi

unread,
Aug 16, 2018, 4:23:22 PM8/16/18
to google-a...@googlegroups.com
Oh, yes, now i understand.

I have a lot of libs using Composer and never have been this problem. I think, you can try removing some of them, and identify if any script causing the issue. 

Katayoon (Cloud Platform Support)

unread,
Aug 17, 2018, 1:39:37 PM8/17/18
to Google App Engine

Hi,


If you are using gcloud for deployment, you won’t have any option to change the disk size. If you get an error in this case, I recommend to report it to the Issue Tracker so that we would be able to investigate it further.


If you are using a hook to deploy your app, you may configure your build via a build config file. So you would have the option on changing the disk size. But as noted here, “diskSizeGb” is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error. So, it seems you should make a refactoring on your code as Maximiliano noted.


Reply all
Reply to author
Forward
0 new messages