How to start with sizing for serverless services like BigQuery and CloudRun ?
Hi @avindia,
Cloud Run automatically adjusts the number of instances based on factors like CPU usage and request volume. To get the best performance and stable concurrency for your service, you can follow these steps:
Keep iterating until you find the max stable concurrency.
For more on managing Cloud Run instances, check out Setting a maximum number of instances. To adjust the number of requests handled per instance, see Setting concurrency. For tips on fine-tuning concurrency, visit development tips for tuning concurrency. If you want to keep an idle instance running to minimize latency or avoid cold starts, see Using min-instance to enable idle instances.
Hope this helps!
Thanks however I am looking for some Sizing guideline like below I found
Recommended preset Total DAGs Max concurrent DAG runs Max concurrent tasks
Small | 50 | 15 | 18 |
Medium | 250 | 60 | 100 |
Large | 1000 | 250 | 400 |
For example, an environment must run 40 DAGs. All DAGs must run at the same time with one active task each. This environment would then use a Medium preset, because the maximum number of concurrent DAG runs and tasks exceed the recommended estimates for the Small preset.
https://cloud.google.com/composer/docs/composer-2/optimize-environments