Skip to content

🎥 Make videos programmatically with React

Docs: document v5 Cloud Run maxInstances default (#9968)

Santhi Prakash90d82d2e18c9
diff --git a/packages/docs/docs/cloudrun/cli/services/deploy.mdx b/packages/docs/docs/cloudrun/cli/services/deploy.mdx
index 52099cd9da..9a45907ed7 100644
--- a/packages/docs/docs/cloudrun/cli/services/deploy.mdx
+++ b/packages/docs/docs/cloudrun/cli/services/deploy.mdx
@@ -85,7 +85,12 @@ Any running instances, even if they are not performing a render, will be billabl
## `--maxInstances`
-The maximum number of service instances that can be create by GCP in response to incoming requests. Default: 100.
+The maximum number of service instances that can be create by GCP in response to incoming requests.
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| <5.0.0 | 100 |
+| >=5.0.0 | 5 |
## `--timeoutSeconds`
diff --git a/packages/docs/docs/cloudrun/deployservice.mdx b/packages/docs/docs/cloudrun/deployservice.mdx
index 05ef729d39..0ee4c8aa89 100644
--- a/packages/docs/docs/cloudrun/deployservice.mdx
+++ b/packages/docs/docs/cloudrun/deployservice.mdx
@@ -53,7 +53,16 @@ Any running instances, even if they are not performing a render, will be billabl
### `maxInstances`
-The maximum number of service instances that can be create by GCP in response to incoming requests. The default is 100. [Read more about the maximum instance limit here](/docs/cloudrun/instancecount#maximum-instance-count)
+The maximum number of service instances that can be create by GCP in response to incoming requests.
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| <5.0.0 | 100 |
+| >=5.0.0 | 5 |
+
+In Remotion 5.0, the [default is reduced](/docs/5-0-migration#cloud-run-services-use-a-lower-maximum-instance-count) because the previous value exceeded the Cloud Run quota on some GCP accounts and caused deployments to fail.
+
+[Read more about the maximum instance limit here](/docs/cloudrun/instancecount#maximum-instance-count)
### `timeoutSeconds`
diff --git a/packages/docs/docs/cloudrun/instancecount.mdx b/packages/docs/docs/cloudrun/instancecount.mdx
index db23c17250..8b9bf26881 100644
--- a/packages/docs/docs/cloudrun/instancecount.mdx
+++ b/packages/docs/docs/cloudrun/instancecount.mdx
@@ -25,7 +25,14 @@ Any running instances, even if they are not performing a render, will be billabl
### Maximum instance count
-This is the maximum number of instances that can be created at one time, with the default set to 100. The maximum that can be set in GCP is also 100 - [more information around limits can be found here](https://cloud.google.com/run/docs/configuring/max-instances#limits). If the maximum number of instances is exceeded, further requests will fail with a `503 service unavailable` response. GCP provides Cloud Tasks for queueing requests, [which can be used in conjunction with Cloud Run](https://cloud.google.com/run/docs/triggering/using-tasks).
+This is the maximum number of instances that can be created at one time.
+
+| Remotion Version | Default |
+| ---------------- | ------- |
+| <5.0.0 | 100 |
+| >=5.0.0 | 5 |
+
+The maximum that can be set in GCP is also 100 - [more information around limits can be found here](https://cloud.google.com/run/docs/configuring/max-instances#limits). If the maximum number of instances is exceeded, further requests will fail with a `503 service unavailable` response. GCP provides Cloud Tasks for queueing requests, [which can be used in conjunction with Cloud Run](https://cloud.google.com/run/docs/triggering/using-tasks).
:::note
You may wish to provide a low maximum instance limit for certain tiers of your product, and have a higher instance limit for higher tier plans. This can be achieved by deploying multiple Cloud Run services and calling them within your product as required.