How are frontend instance hours calculated on app engine?

后端 未结 2 1227
天命终不由人
天命终不由人 2021-02-01 04:01

I have a simple online ordering application I have built. It probably handles 25 hours a week, most of those on Mondays and Tuesday.

Looking at the dashboard I see:

2条回答
  •  天涯浪人
    2021-02-01 04:38

    In addition to the previous answer, I thought to add a bit more about your billing which might have you confused. Google gives you 28 hours of free instance time for each 24 hour billing period.

    Ideally you always have one instance running so that calls to your app never have to wait for an instance to spin up. One instance can handle a pretty decent volume of calls each minute, so a lot can be accomplished with those free 28 hours.

    You have a lot of zero instance time (consumed less than 5 instance hours in seventeen hours of potential billing.) You need to worry more about getting this higher not lower because undoubtedly most of the calls to your app currently are waiting for both spin-up latency plus actual execution latency. If you are running a Go app, spin-up is likely not an issue. Python, likely a small-to-moderate issue, Java...

    So think instead about keeping your instance alive, and consume 100% of your free instance quota. Alternatively, be sure to use Go, or Python (with good design). Do not use Java.

提交回复
热议问题