Google App Engine Frontend Instance Hours Limit Reached

前端 未结 3 876
心在旅途
心在旅途 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.

提交回复
热议问题