app.yaml instance performance settings

186 views
Skip to first unread message

Nial Giacomelli

unread,
Oct 3, 2014, 6:53:26 AM10/3/14
to google-a...@googlegroups.com
I'm new to GAE and have a fairly simple application deployed which uses the PHP runtime. I'm looking to make some tweaks to performance, more specifically the behaviour of instances.

I'm essentially attempting to ensure that I always have at least one idle instance running at all times. To do this, I've added the following settings to app.yaml:

instance_class: F1
automatic_scaling:
  min_idle_instances: 1
  max_idle_instances: automatic
  min_pending_latency: automatic
  max_pending_latency: automatic

However, when attempting to deploy these changes via the command line I'm warned:

WARNING: Performance settings included in this update are being ignored because your application is not using the Modules feature. See the Modules documentation for more information. Python: (https://developers.google.com/appengine/docs/python/modules/) Java: (https://developers.google.com/appengine/docs/java/modules/) Go: (https://developers.google.com/appengine/docs/go/modules/) PHP: (https://developers.google.com/appengine/docs/php/modules/).

My understanding is that all applications must have a default module, and that app.yaml should by default act as a configuration for that default module. As previously stated, my application is relatively simple and doesn't need to be broken into multiple modules. As such, I'm just looking to configure instance behaviour for the application as a whole. Could anyone point me in the right direction and tell me what I'm missing?

Thank you

Vinny P

unread,
Oct 7, 2014, 1:16:28 AM10/7/14
to google-a...@googlegroups.com
On Fri, Oct 3, 2014 at 5:53 AM, Nial Giacomelli <nial.david...@gmail.com> wrote:
However, when attempting to deploy these changes via the command line I'm warned:

WARNING: Performance settings included in this update are being ignored because your application is not using the Modules feature. 

My understanding is that all applications must have a default module, and that app.yaml should by default act as a configuration for that default module. As previously stated, my application is relatively simple and doesn't need to be broken into multiple modules. As such, I'm just looking to configure instance behaviour for the application as a whole. Could anyone point me in the right direction and tell me what I'm missing?



Try going to the App Engine console at appspot.com, click on your application ID, and go to the Application Settings page (the link is on the left hand navigation bar. Then scroll down until you see a performance section similar to this: http://imgur.com/8gNdJoL

If you see a section that looks like the above picture, then the frontend hasn't been migrated to be module-based yet. You can set the performance settings by adjusting the slider bars there, just not via app.yaml that you already tried.

If you have a desperate need to set scaling within app.yaml, then you can add another module to your PHP app and upload it. App Engine should automatically recognize the different modules and use the settings specified in app.yaml. This other module doesn't need much; you can add a simple Hello World script to it and the module will work fine.


 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 
Reply all
Reply to author
Forward
0 new messages