问题描述
当前文档( https://cloud.google.com/run/quotas#cloud_run_limits)指出,云运行请求允许的最大超时时间为15分钟(可配置).
The current documentation (https://cloud.google.com/run/quotas#cloud_run_limits) states there is a 15 minute maximum timeout permitted (configurable) for a cloud run request.
这也是对GKE的限制吗,还是可以配置GKE和部署以允许90分钟的超时?
Is this the limit on GKE as well, or may it be possible to configure GKE and the deployment to permit, say, a 90 minute timeout?
推荐答案
在GKE服务上运行Cloud的请求超时可能超过15分钟.
The request timeout for Cloud Run on GKE services can go beyond 15 minutes.
您可以使用-timeout
标志更改此设置: gcloud beta运行服务更新[SERVICE] --timeout = [TIMEOUT]
You can change this using the --timeout
flag: gcloud beta run services update [SERVICE] --timeout=[TIMEOUT]
在官方文档中了解有关设置请求超时的更多信息.
Read more about setting request timeouts in the official documentation.
这篇关于如何为GKE上部署的Google Cloud Run服务增加15分钟的请求超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!