It seems like an expected behavior. As this 
<https://cloud.google.com/appengine/docs/standard/python/config/appref> 
document mentioned, for min_idle_instances , the number of instances to be 
kept running and ready to serve traffic. As you set it to automatic, at 
least one instance is active to ensure immediate response for sudden 
traffic spikes. So your graph shows minimum number of active instance which 
is one. 

On Wednesday, October 10, 2018 at 6:53:20 AM UTC-4, vvv vvv wrote:
>
> Thanks for the answers. In my app.yaml I have "automatic_scaling: 
> min_idle_instances: automatic "
> I realized an older version of my service was created and running, so I 
> deleted it. What is not clear to me is, after 15 minutes of inactivity, 
> when my instance becomes idle, why isn't the graph that shows the created 
> instances goes down to 0? Isn't inactivity after 15 mins for auto scaling 
> the same as "scale to 0 instances" ? The fact that it doesn't get shut down 
> is the reason it exceeds its memory limit, since the instance keeps using 
> more and more memory the more it runs.
>
>
> El martes, 9 de octubre de 2018, 13:22:17 (UTC+1), vvv vvv escribió:
>>
>> 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/45e78c8c-1d62-4d18-ac20-b060b835c7e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to