为什么Google Cloud Tasks这么慢? [英] Why is Google Cloud Tasks so slow?

查看:151
本文介绍了为什么Google Cloud Tasks这么慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Google Cloud Tasks与AppEngine一起使用来处理任务,但是这些任务在队列中等待大约2-3分钟,然后才发送到我的App Engine端点.

I use Google Cloud Tasks with AppEngine to process tasks, but the tasks wait about 2-3 minutes in the queue before being sent to my App Engine endpoint.

任务上没有设置延迟",我希望它们可以立即发送.

There is no "delay" set on the tasks, and I expect them to be sent right away.

所以问题是:云任务是否很慢?

So the question is: Is Cloud Tasks slow?

您可以看到以下屏幕截图,Cloud Tasks给出了大约3分钟的预计到达时间:

As you can see is the following screenshot, Cloud Tasks gives an ETA of about 3 mins:

推荐答案

Google的官方说法是,这是您从他们的任务队列中可以期望的最好的结果.

The official word from Google is that this is the best you can expect from their task queues.

根据我的经验,如何配置任务似乎会影响它们执行的速度.

In my experience, how you configure tasks seems to influence how quickly they get executed.

似乎:

  • 如果您不更改任务队列的默认行为(例如,最大并发数等),并且如果未指定任务的执行时间(例如,eta),那么您的任务将很快执行提交后.
  • 如果您混淆了这两件事,那么Google需要更长的时间来执行您的任务.我的猜测是,这是控制任务速率和执行的额外开销.

这篇关于为什么Google Cloud Tasks这么慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆