[google-appengine] Random CPU Billing

2010-11-10 Thread Steve
Hi,

I've been trying to understand how CPU usage is calculated / billed.
Because I could not correlate the amounts consumed with what I
expected, I set up a special handler which just returns a 200
response, nothing else.  I then set up a cron job to call that special
url every couple minutes.

As an example, the cron called the URL 5 consecutive times.  During
that time no other users were using this application.  I also checked
each call and none of them indicated that they were responsible for
starting a new instance.  Across these I had an average 102cpu_ms
consumed with a staggeringly high standard deviation of 100cpu_ms.

You can see the actual calls from my log here:
http://oi53.tinypic.com/694c40.jpg

Google, are you actually measuring my CPU usage per call?  Or are you
doing something like the water department where you only measure the
total consumed every X number of calls and just sort of guess the ones
in between?

--Steve

-- 
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-appeng...@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.



Re: [google-appengine] Random CPU Billing

2010-11-10 Thread Eli Jones
Did you expand the logs to see if any of those were cold starts?  I'm
guessing that the higher CPU ones were newly created instances.  And, or all
of the runs were cold starts.. since doing imports on cold start can be all
over the place for CPU MS usage.  (Though, the recent datastore maintenance
seems to have made this performance better.)

What is the page importing when it runs?

On Wed, Nov 10, 2010 at 2:14 PM, Steve unetright.thebas...@xoxy.net wrote:

 Hi,

 I've been trying to understand how CPU usage is calculated / billed.
 Because I could not correlate the amounts consumed with what I
 expected, I set up a special handler which just returns a 200
 response, nothing else.  I then set up a cron job to call that special
 url every couple minutes.

 As an example, the cron called the URL 5 consecutive times.  During
 that time no other users were using this application.  I also checked
 each call and none of them indicated that they were responsible for
 starting a new instance.  Across these I had an average 102cpu_ms
 consumed with a staggeringly high standard deviation of 100cpu_ms.

 You can see the actual calls from my log here:
 http://oi53.tinypic.com/694c40.jpg

 Google, are you actually measuring my CPU usage per call?  Or are you
 doing something like the water department where you only measure the
 total consumed every X number of calls and just sort of guess the ones
 in between?

 --Steve

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 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 google-appeng...@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.