Hi Dani,

If you have set max-idle-instances=1, then in that example, what would
happen is:

(a) Instance is active 1 second every 5 minutes.
(b) That is 288 active seconds for the day.
(c) active-instances-rate is = 288/60*60*24 = 0.0033 for whole day
(d) total-instances-rate = 1 for whole day
(e) billable-instances-rate = min(active-instances-rate +
max-idle-instances, total-instances-rate) = min(0.0033 + 1, 1) = 1

So the total billable instances for the day would be 24, which happens
to also be the number of free instance hours given per day. The
resulting bill would be $0.

On Tue, Sep 6, 2011 at 10:29 AM, Dani Shaulov <[email protected]> wrote:
> Thank you Jon.
> It makes much more sense now.
> Another question:
> If an instance starts - active for 1 seconds
> Then idle for 5 and again active for 1 second
> And again 1 second active every 5 minuets of idle
> (basically 1 request (which takes 1 second) every 5 minuets)
> So it is a total of 288 active seconds a day.
> Is that charged as 15 min start up fee + 288 seconds,
> or as 24 hours of instance time?
> In my understanding, in the old model it's the former and in the new model
> it's the latter.
> Is that right?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/lPvp44U3uLgJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to