>I need to choose between, save money (half of instances) or run fast. That should make sense, but in my opinion,
>python 2.7 should comes to save us money, running at same speed of python 2.5.
>Am I wrong ?
Yes you are wrong. Thread safe only saves you money if you are waiting on API’s enough to save money.
If you look at your Dashboard and 85% of your CPU usage is API’s you will likely go faster and save money with Thread safe.
if you are 85% CPU, unless you always have 10 instances you may save a little money but you will go slower.
If you are at 50% API’s and always have 20 instances, thread safe will make you a lot faster and cut your bill in half.
--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
You only get the benefit of threads if you have unused CPU cycles. If you are only spending .1% of the time waiting on API’s than you don’t have any “Spare” CPU to start on the next task.
Your app will perform as you said, instances will queue up and the first request will take the same amount of time as it did before, the second request will take twice as long, and so your average will be 50% longer than it was on 2.5.
You might test F2 instances with thread safe. In some cases we have found these to be Significantly faster for Request 1.
With F1 and thread safe you would see
100Ms for 1st request
200MS (100+100) for 2nd request.
Average 150ms
With F1 With out thread safe
2 instances would handle requests in 95ms
F2 With Thread Safe
50MS for 1st Request
100MS for 2nd Request
Average 75MS
This F2 Time is As a Result Faster, and The same Price if not Cheaper than the F1’s with out thread safe.
Oh, and I know Goog isn’t in the business of saving us all money, but using the data in the dashboard, they could build a really great Cost optimizer based on the way your CPU usage looks.
Dashboard, CPU Seconds Used/Second Compare the Blue to the orange.
Most of your CPU is API calls. So moving to thread safe should help you a lot. Orange is your API CPU usage, and Blue is your total. So about 75% of your CPU is API, implying that your app does a lot of waiting on API’s…
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Daniel
Sent: Saturday, March 10, 2012 1:12 AM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] My expirencie with python 2.7 and others
Hey Brandon. I'm not clear how to read that graph. Here's what I'm seeing on my app, how do I interpret this and know if 2.7 is might help me?
--
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/-/63jINNx8o7cJ.
Nope. You are still doing X number of API Cycles for every Y number of CPU cycles. Your Application Profile didn’t change.
Where you should see the difference Is in number of instances used, and pending latency. (and you app might feel faster)
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Daniel Kramer
Sent: Saturday, March 10, 2012 9:37 PM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] My expirencie with python 2.7 and others
Got it. I've flipped my app over to 2.7 thread safe.. we'll see how it goes, so far seems to be running without error. Early indications on the CPU seconds Use/Seconds is still showing a similar ratio between Total CPU and API Calls CPU.. shouldn't I expect those lines to come closer together?
On Mar 10, 2012, at 9:52 AM, Brandon Wirtz wrote:
Most of your CPU is API calls. So moving to thread safe should help you a lot. Orange is your API CPU usage, and Blue is your total. So about 75% of your CPU is API, implying that your app does a lot of waiting on API’s…
From: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] On Behalf Of Daniel
Sent: Saturday, March 10, 2012 1:12 AM
To: google-a...@googlegroups.com
Subject: Re: [google-appengine] My expirencie with python 2.7 and others
Hey Brandon. I'm not clear how to read that graph. Here's what I'm seeing on my app, how do I interpret this and know if 2.7 is might help me?
On Thursday, March 8, 2012 11:36:21 PM UTC-8, Brandon Wirtz wrote:
Dashboard, CPU Seconds Used/Second Compare the Blue to the orange.
--
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/-/63jINNx8o7cJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Nope. You are still doing X number of API Cycles for every Y number of CPU cycles. Your Application Profile didn’t change.
Where you should see the difference Is in number of instances used, and pending latency. (and you app might feel faster)
From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Daniel Kramer
Sent: Saturday, March 10, 2012 9:37 PM
To: google-appengine@googlegroups.com
Subject: Re: [google-appengine] My expirencie with python 2.7 and others
Got it. I've flipped my app over to 2.7 thread safe.. we'll see how it goes, so far seems to be running without error. Early indications on the CPU seconds Use/Seconds is still showing a similar ratio between Total CPU and API Calls CPU.. shouldn't I expect those lines to come closer together?
On Mar 10, 2012, at 9:52 AM, Brandon Wirtz wrote:
Most of your CPU is API calls. So moving to thread safe should help you a lot. Orange is your API CPU usage, and Blue is your total. So about 75% of your CPU is API, implying that your app does a lot of waiting on API’s…
From: google-appengine@googlegroups.com [mailto:google-app...@googlegroups.com] On Behalf Of Daniel
Sent: Saturday, March 10, 2012 1:12 AM
To: google-appengine@googlegroups.com
Subject: Re: [google-appengine] My expirencie with python 2.7 and others
Hey Brandon. I'm not clear how to read that graph. Here's what I'm seeing on my app, how do I interpret this and know if 2.7 is might help me?
On Thursday, March 8, 2012 11:36:21 PM UTC-8, Brandon Wirtz wrote:Dashboard, CPU Seconds Used/Second Compare the Blue to the orange.
--
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/-/63jINNx8o7cJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsub...@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-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsub...@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-appengine@googlegroups.com.
To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.