GAE实例是否限制为10个并发请求?

huangapple go评论95阅读模式
英文:

Are GAE instances limited to 10 concurrent request?

问题

我从几个来源听说Google App Engine实例有一个硬限制,即10个并发请求。我想知道是否有人可以澄清这到底意味着什么。

调度程序是否会阻止超过10个请求,还是通过并发线程的限制来实施?

具体来说,这个限制是否会以与Python和Java相同的方式影响Go实例?

编辑:这是一个功能请求,允许App Engine实例处理超过10个并发请求/线程。请给它加星标。

英文:

I've heard from several sources that Google App Engine Instances have a hard limit of 10 concurrent request. I was wondering if someone could clarify what exactly this means.

Does the scheduler block any requests over the 10, or is this enforced through a limit on concurrent threads?

Specifically, does this limit affect Go instances the same way that it does Python and Java?

> EDIT: here's the feature request which will allow App Engine Instance to
> handle more then 10 concurrent request / threads. Allow configurable limit of
> concurrent requests per
> instance
.
> Please star it.

答案1

得分: 8

截至2012年7月12日,是后者。10个并发限制是通过对每个运行时的并发线程进行限制来实施的。在大多数这样的情况下,我们的调度程序将尝试启动一个新实例。

请还参阅jonmac在此线程上的电子邮件:
https://groups.google.com/d/msg/google-appengine/y-LnZ2WYJ5Q/j_w13F4oSSkJ

英文:

As of July 12, 2012, it's the latter. The 10 concurrent limit is enforced through a limit on concurrent threads on every runtime. Most of such cases, our scheduler will try to spin up a new instance.

Please also see the e-mail from jonmac on this thread:
https://groups.google.com/d/msg/google-appengine/y-LnZ2WYJ5Q/j_w13F4oSSkJ

答案2

得分: 2

这个问题已经在2013年11月18日修复。

现在,任何GAE实例可以处理的最大请求数是通过max_concurrent_requests设置进行配置的,例如:

runtime: go
api_version: go1
automatic_scaling:
  max_concurrent_requests: 80

handlers:
  - url: /.*
    script: _go_app

默认值是8,最大值是80。

更多信息请参见https://cloud.google.com/appengine/docs/python/config/appref#automatic_scaling。

英文:

This has been fixed as of Nov 18th 2013.

The maximum number of requests any GAE instance can process is now configured via the max_concurrent_requests setting eg:

runtime: go
api_version: go1
automatic_scaling:
  max_concurrent_requests: 80

handlers:
  - url: /.*
    script: _go_app

The default is 8 and the maximum is 80.

See https://cloud.google.com/appengine/docs/python/config/appref#automatic_scaling for more info.

huangapple
  • 本文由 发表于 2012年7月12日 08:17:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/11443423.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定