[Python] Threadsafe or not?

139 views
Skip to first unread message

Kaan Soral

unread,
Jan 5, 2012, 9:06:20 PM1/5/12
to google-a...@googlegroups.com
I think my requests are lightweight.

I have enabled threadsafe a long time ago but my QPS values for Instances are 0.1 0.3 1.4 etc
Very low

I also have a lot of instances like these, 10s of them ( min_idle = 1 )

Is there anyone who can confirm concurrency in Python?

(I think my regular requests should use 0-3mb of ram, but I have no way of testing it, how can I test it? )

Brian Quinlan

unread,
Jan 5, 2012, 9:58:15 PM1/5/12
to google-a...@googlegroups.com
The Python 2.5 runtimes does not support concurrent requests. The
Python 2.7 runtime (currently experimental) does.

Cheers,
Brian

> --
> 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/-/fWBjhEcToosJ.
> 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.

Kaan Soral

unread,
Jan 6, 2012, 3:19:02 PM1/6/12
to google-a...@googlegroups.com
Like I mentioned in my post, I've enabled threadsafe, so you can deduct that I am on 2.7

I have also tried F4 instances today, but although I had 12 instances when I checked, QPS values was around 3-5 and memory was around 90's on all instances
(max 256 but all instances were using 80-90)

So I don't think concurrency is used much

Kaan Soral

unread,
Jan 6, 2012, 3:21:23 PM1/6/12
to google-a...@googlegroups.com
To be clear, I think we are highly overcharged

Brian Quinlan

unread,
Jan 6, 2012, 5:05:07 PM1/6/12
to google-a...@googlegroups.com
On Sat, Jan 7, 2012 at 7:19 AM, Kaan Soral <kaan...@gmail.com> wrote:
Like I mentioned in my post, I've enabled threadsafe, so you can deduct that I am on 2.7

Actually, you can set "threadsafe: yes" in Python 2.5 as well so that would not be a safe assumption.

There are know issues with using concurrent requests with Python 2.7:

Cheers,
Brian
 
I have also tried F4 instances today, but although I had 12 instances when I checked, QPS values was around 3-5 and memory was around 90's on all instances
(max 256 but all instances were using 80-90)

So I don't think concurrency is used much

--
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/-/2mXQgZP8MBkJ.

Kaan Soral

unread,
Jan 7, 2012, 3:01:52 PM1/7/12
to google-a...@googlegroups.com
Thanks for the info, I've starred the issue
Reply all
Reply to author
Forward
0 new messages