I've read several posts about this (ex., 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?
App Engine attempts to keep manual and basic scaling instances running indefinitely.
Manual scaling provides 8 frontend hours per day, not 28.
I also read that the instance shuts down after 15 minutes of inactivity, is it true/false?
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' states the following:App Engine attempts to keep manual and basic scaling instances running indefinitely.The '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?) 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 google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
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.
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. |
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/3b81f15c-95dd-46c6-91c2-bcd1eb9b348e%40googlegroups.com.