GAE:每秒执行多少任务就足够了?

发布于 2024-09-29 06:07:12 字数 269 浏览 0 评论 0原文

我正在使用 GAE 和任务队列。在queue.yaml文件中,我保留默认设置:5/s。 1 个月前,我认为这已经足够了,但现在一个队列中有大约 40-50 个任务,所以我的应用程序运行速度太慢。

我想知道每秒多少任务才足够?可以改成100/s吗?

谢谢:)


更新:

我的应用程序从一些社交网络获取数据,计算并保存到数据存储区。为了超过 GAE 30 秒的限制,我将此操作拆分为多个任务。我想知道更改并部署到 GAE 之前 GAE 任务队列的限制:)

I'm using GAE and task queue. In queue.yaml file, I keep default setting: 5/s. 1 month ago I thought it's enough but now there are about 40-50 tasks in one queue so my application runs too slow.

I want to know how many tasks per second is enough ? Can I change to 100/s ?

Thank you :)


Update:

My application gets data from some social networks, calculate and save to datastore. To over limit 30 seconds of GAE, I split this operation to tasks. I want to know the limit of GAE task queue before change and deploy to GAE :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

霓裳挽歌倾城醉 2024-10-06 06:07:12

http://code.google.com/appengine/docs/python /taskqueue/overview.html#Quotas_and_Limits

http: //code.google.com/appengine/docs/java/taskqueue/overview.html#Quotas_and_Limits

我强烈建议逐步增加设置,以找到最佳性能点。需要运行的任务数量显然高于 5/s,但直到您尝试运行一段时间后您才知道正确的数量,并且直接跳到顶部听起来不是一个好主意。

http://code.google.com/appengine/docs/python/taskqueue/overview.html#Quotas_and_Limits

or

http://code.google.com/appengine/docs/java/taskqueue/overview.html#Quotas_and_Limits

I'd highly recommend increasing the settings in steps to find your performance sweet spot. The number of tasks needed to run is obviously higher than 5/s but you don't know what's the proper number until you've tried running for a while, and heading straight to the top doesn't sound like a good idea.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文