Hello
According to this <https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed#instance_scaling> document, a service with manual scaling server uses resident instances that continuously run the specified number of instances irrespective of the load level. A requests can run for up to 24 hours. A manually-scaled instance can choose to handle /_ah/start and execute a program or script for many hours without returning an HTTP response code. For auto scaling <https://cloud.google.com/appengine/docs/standard/python/config/appref#scaling_elements> method, I would recommend to check the min_idle_instances setting in app.yaml file which is set to ensure the number of instances to be kept running and ready to serve traffic. You can check your instance list by going to the versions <https://console.cloud.google.com/appengine/versions> page of your console. To do that, login to your console, then click on hamburger sign on your upper left corner and select ‘Versions’ from ‘App Engine’ section. You will find ‘Instances’ column which indicates how much instances are currently active for that application version. By clicking on this link will show you the instances are running now. You can check this for your running instances for the app version. I also found this group thread <https://groups.google.com/forum/#!topic/google-appengine/Pbn4omhqv3Y> discussed about this instance graph specifically. If required you can also check this for more clarification. On Tuesday, October 9, 2018 at 8:22:17 AM UTC-4, vvv vvv wrote: > > I am on the AppEngine Standard Python 3.7 environment. I have set up a > cron job to execute every two hours. This cron job creates a bunch of > threads, they execute some task and finish after some seconds. My web > service receives no traffic other than this currently. > > I am attaching the number of instances graph, and the memory usage. In the > instances graph the blue line shows that an instance runs for 15 minutes > every two hours, which is what one would expect with automatic scaling and > scaling to 0 instances. The green line shows that there are two instances > running persistently, with the only exception at 23:00 when one instance > gets killed because it goes out of memory, as one can see from the memory > graph attached. > > My question is, why is there one instance running all the time? Who has > created it? I'm trying to sort out my memory issue. Thanks a lot. > P.S attached utilization graph to rule out the possibility that my > instance is still alive after 15 minutes. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/2791d416-650e-4eb7-8272-1feb422555af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
