Minimize Frontend Instance Hours

99 views
Skip to first unread message

Matt

unread,
Apr 6, 2020, 11:59:00 AM4/6/20
to Google App Engine

Trying to keep my frontend instance hours below the 28 hour "free" allowance.

Here's part of my app.yaml:

runtime: python27
threadsafe: true
api_version: 1
automatic_scaling:
  max_instances: 1
  min_instances: 0

But I am still going over. Any advice?

Vitaly Bogomolov

unread,
Apr 6, 2020, 3:09:19 PM4/6/20
to Google App Engine
Hi Matt
 
automatic_scaling:
  max_instances: 1
  min_instances: 0

automatic_scaling:
  max_idle_instances: 1
  min_idle_instances: 1

WBR, Vitaly

Giuliano Ribeiro

unread,
Apr 6, 2020, 3:15:37 PM4/6/20
to google-a...@googlegroups.com
In my case I included only this:


automatic_scaling:
   max_instances: 1

This will make sure I will have an entire day on free tier.




--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7a5efc52-d5d4-4c19-9b62-e421d7c036d7%40googlegroups.com.

Alexander Kislitsky

unread,
Apr 7, 2020, 2:03:30 PM4/7/20
to Google App Engine
Hi Matt

Your configuration should limit the instance number, but if you are often deploy an application you can get out of free hour limit.


"Basic or automatic scaling: accrual ends fifteen minutes after an instance finishes processing its last request."

Matt

unread,
Apr 8, 2020, 2:41:41 PM4/8/20
to Google App Engine
I think this may be the problem. My typical workflow is that I app deploy then delete the old version manually in the dashboard. I am guessing I get a 15 minute accrual every time since it spins up a new instance to serve the new version.

Would specifying a version with "-v" prevent the extra accrual? That way I can replace the serving version without having to go in and delete the old one.

Thanks!
Reply all
Reply to author
Forward
0 new messages