Skip to main content

Cloud Run 限制

EXPERIMENTAL

适用标准的 GCP Cloud Run 配额(见此处),最值得注意的是:

🌐 The standard GCP Cloud Run quotas apply (see here), most notably:

  • 并发性:默认情况下,Remotion Cloud Run 部署时的并发数为 0。这意味着每个请求都会获得自己独立的实例。这可以在 GCP 控制台中更改,不过 Remotion 团队尚未测试单个实例上的并发请求。
  • 实例:可以根据请求创建的 Cloud Run 服务实例的数量。可配置,最多限制为 100。可以通过 GCP 控制台申请更高的配额限制。
  • 内存:可配置,最大限制为32GB
  • 执行限制:可配置,最长60分钟

增加实例配额的步骤

🌐 Steps to increase Instance quota

导航到 IAM 中的配额 并选择你的 Remotion 项目。

🌐 Navigate to Quotas within IAM and select your Remotion project.

你可以请求增加每个 GCP 区域的实例限制。选择每个所需的区域,确保配额列中的值是每个区域的实例限制。在右上角,选择编辑配额。

🌐 You are able to make a request for an increase in Instance limit per GCP region. Select each region required, ensuring the value in the Quota column is Instance limit per region. In the top right corner, select Edit Quotas.

按照提示操作,并使用以下要点作为指南。无法保证示例描述在将来的请求中有效。

🌐 Follow the prompts, using these points below as a guide. There is no guarantee that the example descriptions will work future requests.

  • '每个区域的实例限制'配额是 Cloud Run 管理 API 的一部分。
  • 示例请求描述 - “希望确保我们的用户无需等待。我们运行的 Cloud Run 服务不能有任何并发,因此我们依赖于为多个请求启动额外的实例。”
  • 示例预期使用场景 - “使用 Remotion (https://remotion.dev) 为用户渲染视频。每个对服务的请求都会渲染一个视频并将其存储在云存储中,然后完成。”
  • 示例预期使用模式 - “我预计在澳大利亚的工作时间会有高峰。”
  • 当被问及容器是否支持并发请求时,输入 0。
  • 我如何得出所请求实例数量的示例——“希望将现有配额翻倍。”