So, I can set min_idle_instances in app.yaml instead of ping the instance 
every 5 mins. Is it right?

I actually made a test. I hit my instance *every second*. My daily quota 
ends in 8 hours, and I've consumed 16,29 of 28 instance hours in 47.165 
requests. It's worth to say that I'm only returning a "hello world" 
message, nothing heavy. 



El domingo, 24 de enero de 2016, 21:08:21 (UTC-3), Alex Martelli escribió:
>
> On Fri, Jan 22, 2016 at 12:59 PM, Aldo Suarez <[email protected] 
> <javascript:>> wrote:
>
>> Manual scaling provides 8 frontend hours per day, not 28.
>>
>
> Yep, that's the total for manual plus basic scaling (in addition to the 
> autoscaling 28 instance hours -- there is no such thing as "frontend 
> hours").
>  
>
>> I also read that the instance shuts down after 15 minutes of inactivity, 
>> is it true/false?
>>
>
> Absolutely not for manual and basic scaling modules: *those* instances, 
> idle or not, only go away when explicitly requested to (with the Modules 
> API, e.g 
> https://cloud.google.com/appengine/docs/python/refdocs/google.appengine.api.modules.modules
>  
> , possibly mediated via the appcfg command-line tool).
>
> For autoscaling modules, idle instances normally go away (a little bit 
> earlier than after 15 minutes of idle time, in general; you're charged for 
> 15 minutes as an approximation of the costs of provisioning and recycling 
> instances); but you can control that -- in particular, you can force one 
> idle instance to remain at all times by setting the min_idle_instances 
> value to 1. Of course that one idle instance will then idly consume 24 
> hours per day (if it's the smallest instance class), leaving only 4 hours 
> per day for NON-idle instance time within the free quota.
>
>
> Alex
>
>
>>
>> El viernes, 22 de enero de 2016, 15:10:49 (UTC-3), Nicholas (Google Cloud 
>> Support) escribió:
>>>
>>> I would suggest you use manual scaling to accomplish your goal of a 
>>> (mostly) indefinitely running instance. This article about 'Instance 
>>> uptime 
>>> <https://cloud.google.com/appengine/docs/python/modules/#Python_Instance_uptime>'
>>>  
>>> states the following:
>>>
>>>> *App Engine attempts to keep manual and basic scaling instances running 
>>>> indefinitely.*
>>>
>>>
>>> The 'Scaling and instance types 
>>> <https://cloud.google.com/appengine/docs/python/config/appconfig#scaling_and_instance_types>'
>>>  
>>> article reveals how to configure your App Engine application to use manual 
>>> scaling. If you have a single instance running indefinitely, it should only 
>>> consume ~24 instance hours thereby running all day each day barring 
>>> required shut downs and start ups.
>>>
>>> On Friday, January 22, 2016 at 3:17:29 AM UTC-5, Aldo Suarez wrote:
>>>>
>>>> I've read several posts about this (ex., How are frontend instance 
>>>> hours calculated on app engine? 
>>>> <http://stackoverflow.com/questions/16782136/how-are-frontend-instance-hours-calculated-on-app-engine>)
>>>>  
>>>> and I'm still wondering about it.
>>>>
>>>> I haven't got too much traffic, so my instance gets spin down and up, 
>>>> consuming 15 minutes of front-end hours on each start up.
>>>>
>>>> I'm grateful with Google Cloud services, however I'd like to take full 
>>>> advantage of my App Engine free quota. Should I ping my instance every 5 
>>>> minutes? should I change my app.yaml settings? should I make a cronjob?
>>>>
>>>>
>>>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/57165362-024e-45c4-a902-1dfa14e655c6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/57165362-024e-45c4-a902-1dfa14e655c6%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 [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/3b81f15c-95dd-46c6-91c2-bcd1eb9b348e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to