I just posted an answer <http://serverfault.com/questions/717810/app-engine-instance-hours-seem-way-too-high/717887#717887> on serverfault.
TL;DR: it's quite possible that you are misinterpreting the docs, but we can just guess, because you are not giving the crucial information (configuration details, in particular instance class; activity pattern). It is *not* the case that "instance hours should correlate 1:1 with [your] module’s uptime", unless your instance class is B1 and your module never goes idle. All larger instance classes are shown in terms of B1 instance-hours, with various multiples (e.g, the default instance class, B2, has a multiple of two: one hour of B2 shows up as two instance-hours). And, each time the module goes idle, billing ceases 15 minutes (elapsed, i.e, wall-clock, time) later. I believe the docs <https://cloud.google.com/appengine/docs/python/modules/#Python_Instance_scaling_and_class> are clear on this, but if that is not the case then please indicate how you believe things could be made clearer, to help us improve the documentation -- thanks! Alex On Sun, Aug 30, 2015 at 6:03 AM, Chester Moy <somethingsome2...@gmail.com> wrote: > I have this issue/query posted up on serverfault, but so far, it doesn’t > seem > like people think it’s appropriate. So I’m asking here in case my post gets > deleted. > > I have a small app hosted on GAE with 2 modules. The default module, > frontend is > alotted 28 instance hours. The backend is using basic_scaling: so only > has 8 > instance hours available. > > I noticed that my application has only been running for 2 hours, yet the > backend > module has already used up 76% of its quota! This doesn’t make sense to me. > According to the docs, instance hours are calculated by instance uptime > (taking > into account multiple instances). > > The instance hours should correlate 1:1 with my module’s uptime. I have > max_instances: 1 set. I also checked the running instances just to make > sure > that App Engine wasn’t spawning multiple instances. It wasn’t. I get one > instance, but it’s burning up hours faster than it should. > > Am I just misinterpreting the docs? If that’s the case, how do I lower the > rate > it burns through the quota? > > > -- > 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-appengine+unsubscr...@googlegroups.com. > To post to this group, send email to google-appengine@googlegroups.com. > Visit this group at http://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/f0d3c773-b135-4db9-9110-310ce19daeed%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/f0d3c773-b135-4db9-9110-310ce19daeed%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAE46Be-5U%2Bs_2gD0zEEJn_GPCMi4rKAMa8cKb49Q2Vm133sPLg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.