Google cloud platform 各地区谷歌云功能的性能差异极大

Google cloud platform 各地区谷歌云功能的性能差异极大,google-cloud-platform,google-cloud-functions,Google Cloud Platform,Google Cloud Functions,我已经在两个不同的地区部署了: 2018-08-13 21:05:14.179 MESZ Cloud Functions UpdateFunction us-central1:helloGET 这些函数平均运行时间>1000毫秒: 2018-08-13 21:06:07.735 MESZ helloGET Function execution took 1268 ms, finished with status code: 304 部署到 2018-08-13 20:59:49.021 ME

我已经在两个不同的地区部署了:

2018-08-13 21:05:14.179 MESZ Cloud Functions UpdateFunction us-central1:helloGET
这些函数平均运行时间>1000毫秒:

2018-08-13 21:06:07.735 MESZ helloGET Function execution took 1268 ms, finished with status code: 304
部署到

2018-08-13 20:59:49.021 MESZ Cloud Functions CreateFunction europe-west1:helloGET
该函数在(预期)ms范围内运行:

2018-08-13 21:05:57.636 MESZ helloGET Function execution took 6 ms, finished with status code: 304

这里显示的数据来自堆栈驱动程序日志,因此延迟不是问题。应用程序完全相同(helloWorld)。这些结果是可重复的。这是怎么回事?有什么想法吗?

也许这只是一种波动。尝试几次计算平均值和标准偏差。还可以查看部署之间是否存在差异。您可能在
us-central1
执行中的第一次执行中遇到了错误。您确定以前没有执行过
europe-west1
功能吗?我建议运行几次尝试,并计算@ivan_pozdeev提到的平均值。执行时间值是平均值看起来很奇怪。你部署了什么?Python函数?我知道它们是最近发布的,所以可能有问题?除此之外,您从哪个区域调用函数?这也会影响延迟。您正在运行哪些测试?只是出于好奇。你可以编辑你的文章来包含这一点。如果没有复制问题的步骤,我们只能猜测。你可能应该问问谷歌的支持人员——他们更适合回答这个问题,因为他们有服务器日志之类的东西。