fix(query): make config validation for query controller less strict #21324
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #21321
In 2.0.4:
query-concurrency: 0
was not allowedquery-concurrency
andquery-queue-size
were both 10In practice, we found that users quickly hit the default threshold. See #17912.
In 2.0.5:
query-concurrency: 0
was enabled as a short-hand for infinite concurrencyquery-queue-size
is 0 whenquery-concurrency
is 0query-queue-size
is > 0 whenquery-concurrency
is > 0query-concurrency
andquery-queue-size
were both updated to be 0This is guaranteed to be a breaking change for any users that had updated their deployments to override the config value for
query-concurrency
without also updatingquery-queue-size
, because concurrency must have been > 0 and queue-size would now be 0 by default.This PR:
query-concurrency
andquery-queue-size
to 1024query-queue-size
> 0 whenquery-concurrency
is 0The new non-zero defaults should prevent the guaranteed breaking change from 2.0.5, but still give more breathing room to users that have been fighting the concurrency limits in older versions. The validation change should make it smoother for users who want to make use of the new infinite-concurrency feature.