Re: [google-appengine-go] When will Goroutines gain parallelism?

144 views
Skip to first unread message

David Symonds

unread,
Aug 3, 2012, 12:55:01 AM8/3/12
to tr...@phamcom.com, google-ap...@googlegroups.com
On Thu, Aug 2, 2012 at 3:47 PM, <tr...@phamcom.com> wrote:

> ability to utilize more than 1 cpu.

It's unlikely to happen in the short- to medium-term.

Kyle Finley

unread,
Aug 3, 2012, 2:05:00 AM8/3/12
to google-ap...@googlegroups.com, tr...@phamcom.com
What about the 10 concurrent request limit? Do you think a Go instances could safely handle more then 10 in flight request? If so how may? I would like to create a feature request.

I created a test app that simply held requests open for 10 sec. On App Engine a new instance was added on the 11th request, while a single instance on Heroku handled 200+ request before I received the first error. While Heroku instance are most likely beefer then AE I still think that AE can do better.

It seems that this limit is imposed to protect python and java apps more then Go, is that correct?

Sorry to hijack the thread, but it seems related.

David Symonds

unread,
Aug 3, 2012, 2:42:42 AM8/3/12
to Kyle Finley, google-ap...@googlegroups.com, tr...@phamcom.com
On Fri, Aug 3, 2012 at 4:05 PM, Kyle Finley <kylef...@gmail.com> wrote:

> What about the 10 concurrent request limit? Do you think a Go instances
> could safely handle more then 10 in flight request? If so how may? I would
> like to create a feature request.

That's not clear. The true limit of an instance is obviously highly
dependent on the workload of the app; some could handle thousands, and
some struggle with 10. 10 seems to be near a reasonable sweet spot
that is safe for almost all apps, but also reasonably effective for
concurrent apps.

Feel free to file a feature request on the issue tracker to make that
configurable. I doubt we will change away from 10 as a default.

> I created a test app that simply held requests open for 10 sec. On App
> Engine a new instance was added on the 11th request, while a single instance
> on Heroku handled 200+ request before I received the first error. While
> Heroku instance are most likely beefer then AE I still think that AE can do
> better.

I could believe that. Try doing some work in the app handler and the
balance might change.

> It seems that this limit is imposed to protect python and java apps more
> then Go, is that correct?
>
> Sorry to hijack the thread, but it seems related.

The general mechanism is to protect all of them, but it is conceivable
that we could some day make it tunable.


Dave.

Kyle Finley

unread,
Aug 3, 2012, 3:25:49 AM8/3/12
to google-ap...@googlegroups.com, Kyle Finley, tr...@phamcom.com
Thank you Dave for your quick responses. I can see how 10 makes for a responsible default. 

For anyone else who is interested in allowing their instance to handle more than 10 request, I have created a feature requests - please star it:

Thanks,

Kyle

Johnson

unread,
Aug 9, 2012, 4:35:07 AM8/9/12
to google-ap...@googlegroups.com, Kyle Finley, tr...@phamcom.com
thanks kyle, starred
Reply all
Reply to author
Forward
0 new messages