Skip to content

Update max environment query limit to 30

Mireya Andres requested to merge ma/update-max-env-limit into master

What does this MR do and why?

For #388952 (closed)

Based on this recommendation, we can update the environment query limit to 30.

For variables, the 90th Percentile of projects and namespaces will use anywhere between 10 - 25 variables. For environments, I believe that loading at least 30 environments (since the 90th Percentile of projects with 503 environments will use 29 environments) will help reduce the number of 503 errors that occur.

The changes are applicable under the ci_limit_environment_scope feature flag.

Screenshots or screen recordings

Screenshot_2023-03-28_at_14.22.09

How to set up and validate locally

You can follow the same validation instructions in this MR.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports