Google App Engine Frontend Instance Hours Limit Reached

前端 未结 3 874
心在旅途
心在旅途 2021-02-07 14:15

I\'ve a static html website hosted with Google App Engine Free option. I do not have any traffic to speak of as it is new site and only traffic is myself visiting the website. <

相关标签:
3条回答
  • 2021-02-07 14:17

    Just to clarify a bit for you. You are thinking each request consumed .05/15 of your free quota. This is your fundamental error. Each request will be served by an instance of your app. You get 28 instance hours free. Each time a request is sent, if no instance is active, one will be started and it will consume 15 minutes of this quota -- even if it just services one request. However, if you app is efficient, many thousands of requests can be served by this one instance in 15 minutes. If your app is inefficient, or you have a lot of traffic, you will end up with more than one instance running at a time. If you always have 4 instances always running, you will consume 1 hour of instance quota each 15 minutes, so your site will become unavailable after 6 hours. As noted, this is when you start playing with the min/max idle instances -- you can tradeoff response time for fewer instances. In the example, let's say you adjust Min/Max Idle and let your app's response time go up, but by doing so you reduced the number of active instances from 4 back to 1. You could then keep the site up for a full 24 hours.

    0 讨论(0)
  • 2021-02-07 14:20

    you can change Max Idle Instances and Min Pending Latency settings to reduce creating more than one instance. set expirations for your content. (link)

    0 讨论(0)
  • 2021-02-07 14:36

    If no instance is running than a request will cause an instance to start. Instances stay up for 15 minutes after they served last request.

    So, theoretically, you could make requests every 15 min, total 96 a day and use 24 hours of instance time, out of 28 free instance hours a day.

    0 讨论(0)
提交回复
热议问题