Too many instances in Google App Engine for PHP

0 views
Skip to first unread message

Mathew Paret via StackOverflow

unread,
Apr 2, 2016, 12:58:04 AM4/2/16
to google-appengin...@googlegroups.com

I have launched a new Android application and I have a Google AppEngine (PHP) module that supports it (to sync profile information to the cloud).

I have noticed that the instance hours used is too much. Could someone please advice me how I can configure the AppEngine to use very less number of instances so that I never overshoot the free number of instances quota of 28 hours per day?

Is there a way to limit the number of instances fired up parallely? Will disabling threading (threadsafe=no) help?

I am new to Google AppEngine and cloud.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/36369334/too-many-instances-in-google-app-engine-for-php

DoIT International via StackOverflow

unread,
Apr 2, 2016, 6:53:04 AM4/2/16
to google-appengin...@googlegroups.com

You can't control, at least directly, how many instances your app will consume at any given time as App Engine will do its best to decide it for you.

Here is what you can do:

  • Profile your application to understand how your code is using resources and work on shortening the time each request is using (the shorter your requests are, the less instances you will need).
  • Set daily budget for your app. After the budget is exhausted, the app will stop serving traffic.
  • Disable billing. After free 28 hours would be used, the app will stop serving traffic.


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/36369334/too-many-instances-in-google-app-engine-for-php/36372271#36372271
Reply all
Reply to author
Forward
0 new messages