[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread boson

Well as to point #1 below, wouldn't you know as I wrote that post I
got my first warning in the logs.  I see it is different from the
exclamation icon.

01-20 12:29PM 15.424 /regions/ 200 1601ms 3270ms-cpu 7kb
69.63.176.230 - - [20/Jan/2009:12:29:17 -0800] "POST /regions/ HTTP/
1.1" 200 7612 - -
W 01-20 12:29PM 17.022

[W] "This request used a high amount of CPU, and was roughly 3.7 times
over the average request CPU limit. High CPU requests have a small
quota, and if you exceed this quota, your app will be temporarily
disabled."


Now this was for a request that did a single query to load 3 small
entities, and didn't even write anything at all to DS.

I'm actually seeing other timing warnings, so I hope it's GAE
stuttering in general.

I'm beginning to worry that this platform isn't going to work out for
anything other than serving the most basic pages right out of
memcache.



On Jan 20, 12:39 pm, boson  wrote:
> Hi Marzia, thanks for responding.  I've read that a few times actually
> and it's part of what is confusing.  See:
>
> 1.
> Re:http://code.google.com/appengine/kb/general.html#highcpu
> That link describes a message that says:
>   "This request used a high amount of CPU, and was roughly
>   X times over the average request CPU limit.
>   High CPU requests have a small quota, and if you exceed
>   this quota, your app will be temporarily disabled."
>
> However I get the orange/red text in my req log with yellow ! icon
> saying (on mouseover):
>   "This request used a high amount of CPU and may soon exceed its
> quota"
>
> I've never seen the one from the docs.  Is this the same message & the
> docs are out of date, or is this a different message with a different
> meaning?
>
> 2.
> Also, the other issue: if a single Datastore put (an update) of a
> modestly sized (<10 fields) entity is often taking ~1000ms-CPU
> (=1sec), I understand that doesn't count toward runtime CPU quota
> (right?), but it DOES count toward overall CPU Time used.
>
> So 3600 puts would take a ~CPU-hour, which costs $0.10 at the proposed
> rates.  That's ~$0.027 / 1000 hits, assuming a page writes just one
> entity (eg counter/timestamp/etc).
>
> It seems like (social/consumer-oriented) apps on GAE would need dozens
> of ads just to break even to support the basic DS operational costs,
> not even including any other costs (bandwidth, additional CPU use for
> preparing/rendering pages, etc.).
>
> Tell me my math is wrong, or that DS puts are going to be optimized
> soon?
> I'm just having a hard time seeing how writing a single entity takes
> so much CPU.
>
> Thank you.
>
> On Jan 20, 9:35 am, Marzia Niccolai  wrote:
>
> > Hi,
>
> > Please also read this 
> > FAQ:http://code.google.com/appengine/kb/general.html#highcpu
>
> > -Marzia
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread boson

Hi Marzia, thanks for responding.  I've read that a few times actually
and it's part of what is confusing.  See:

1.
Re: http://code.google.com/appengine/kb/general.html#highcpu
That link describes a message that says:
  "This request used a high amount of CPU, and was roughly
  X times over the average request CPU limit.
  High CPU requests have a small quota, and if you exceed
  this quota, your app will be temporarily disabled."

However I get the orange/red text in my req log with yellow ! icon
saying (on mouseover):
  "This request used a high amount of CPU and may soon exceed its
quota"

I've never seen the one from the docs.  Is this the same message & the
docs are out of date, or is this a different message with a different
meaning?


2.
Also, the other issue: if a single Datastore put (an update) of a
modestly sized (<10 fields) entity is often taking ~1000ms-CPU
(=1sec), I understand that doesn't count toward runtime CPU quota
(right?), but it DOES count toward overall CPU Time used.

So 3600 puts would take a ~CPU-hour, which costs $0.10 at the proposed
rates.  That's ~$0.027 / 1000 hits, assuming a page writes just one
entity (eg counter/timestamp/etc).

It seems like (social/consumer-oriented) apps on GAE would need dozens
of ads just to break even to support the basic DS operational costs,
not even including any other costs (bandwidth, additional CPU use for
preparing/rendering pages, etc.).

Tell me my math is wrong, or that DS puts are going to be optimized
soon?
I'm just having a hard time seeing how writing a single entity takes
so much CPU.

Thank you.

On Jan 20, 9:35 am, Marzia Niccolai  wrote:
> Hi,
>
> Please also read this 
> FAQ:http://code.google.com/appengine/kb/general.html#highcpu
>
> -Marzia

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



[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-20 Thread Marzia Niccolai

Hi,

Please also read this FAQ:
http://code.google.com/appengine/kb/general.html#highcpu

-Marzia

On Fri, Jan 16, 2009 at 8:41 PM, Josh Heitzman  wrote:
>
> http://code.google.com/p/googleappengine/issues/detail?id=240 is an
> issue related to the issue you raised in your post.
>
> On Jan 16, 1:31 pm, boson  wrote:
>> After a URL in the request log are the following fields (example):
>> 200 1584ms 2571ms-cpu 4kb
>> Am I correct in believing these are: HTTP response code, real time,
>> "CPU time", and response size?
>>
>> Now I get various orange and red warnings depending on the ms-cpu
>> value (almost always when I create an entity, and often just for
>> writing one - even simple ones).  But I haven't ever seen any increase
>> in my "High CPU Requests" on the quota page.  Is this normal?
>>
>> I've read these pages, but I'm still not sure what's going on 
>> here.http://code.google.com/appengine/docs/quotas.html#Resourceshttp://code.google.com/appengine/articles/quotas.html
>>
>> The first page says "Datastore CPU time does not count towards the
>> high CPU threshold", but apparently it IS included in the value in the
>> request log where the warning comes from.  Is there a breakdown
>> anywhere of whether this time is in user CPU or DS CPU?
>>
>> Also with the amount of CPU time reported in the request log, it seems
>> that even modest traffic will kill the CPU Time quota, as even the
>> most basic DS write operations with a handful of properties seem to
>> often take ~1000ms-cpu (even when the request itself takes less time).
>>
>> I'm not even sure what questions to ask here, so if you can answer the
>> obvious unasked ones too please do so.  I'm rather confused by all
>> this, but am hoping it's more obvious than it seems right now...
>>
>> Thank you.
> >
>

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



[google-appengine] Re: How does this CPU limit stuff really work?

2009-01-16 Thread Josh Heitzman

http://code.google.com/p/googleappengine/issues/detail?id=240 is an
issue related to the issue you raised in your post.

On Jan 16, 1:31 pm, boson  wrote:
> After a URL in the request log are the following fields (example):
> 200 1584ms 2571ms-cpu 4kb
> Am I correct in believing these are: HTTP response code, real time,
> "CPU time", and response size?
>
> Now I get various orange and red warnings depending on the ms-cpu
> value (almost always when I create an entity, and often just for
> writing one - even simple ones).  But I haven't ever seen any increase
> in my "High CPU Requests" on the quota page.  Is this normal?
>
> I've read these pages, but I'm still not sure what's going on 
> here.http://code.google.com/appengine/docs/quotas.html#Resourceshttp://code.google.com/appengine/articles/quotas.html
>
> The first page says "Datastore CPU time does not count towards the
> high CPU threshold", but apparently it IS included in the value in the
> request log where the warning comes from.  Is there a breakdown
> anywhere of whether this time is in user CPU or DS CPU?
>
> Also with the amount of CPU time reported in the request log, it seems
> that even modest traffic will kill the CPU Time quota, as even the
> most basic DS write operations with a handful of properties seem to
> often take ~1000ms-cpu (even when the request itself takes less time).
>
> I'm not even sure what questions to ask here, so if you can answer the
> obvious unasked ones too please do so.  I'm rather confused by all
> this, but am hoping it's more obvious than it seems right now...
>
> Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---