Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine Frontend Instance Hours Limit Reached

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.

I notice, with just 15 request of the homepage my frontend instance hours consumed is 5%. With this rate, I my website can serve only 300 visitors per day.

I want to know what happens when the frontend instance hours limit is reached? Will my website become unavailable to public? I read somewhere that static content is served by different servers and should still be served, as long as you don't go beyond the bandwidth limits. Is this true?

How to reduce frontend instance hours?

like image 980
Apra Barua Avatar asked Jun 15 '12 03:06

Apra Barua


2 Answers

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.

like image 64
stevep Avatar answered Oct 14 '22 19:10

stevep


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.

like image 21
Peter Knego Avatar answered Oct 14 '22 20:10

Peter Knego