Skip to content

Remove --concurrency-target Flag from knative.sh#583

Merged
leokondrashov merged 2 commits intovhive-serverless:mainfrom
dhairyarungta:remove-concurrency-target-flag
Jun 20, 2025
Merged

Remove --concurrency-target Flag from knative.sh#583
leokondrashov merged 2 commits intovhive-serverless:mainfrom
dhairyarungta:remove-concurrency-target-flag

Conversation

@dhairyarungta
Copy link
Contributor

Summary
Removing the --concurrency-target flag from the knative.sh script as it conflicts with the containerConcurrency setting defined in trace_func_go.yaml. Since containerConcurrency specifies a hard limit, adding a soft limit via --concurrency-target=1 can lead to unexpected behaviour when containerConcurrency > 1.

Details
Hard Limit: Configured via containerConcurrency, strictly enforces the maximum concurrent requests per container.
Soft Limit: Configured via --concurrency-target or autoscaling.knative.dev/target, is a guideline that can be exceeded.
When both limits exist, the smaller value takes precedence. Removing the redundant soft limit avoids conflicts and ensures predictable scaling behaviour.

More information provided in Knative documentation: https://knative.dev/docs/serving/autoscaling/concurrency/

@leokondrashov
Copy link
Contributor

Please sign-off your commit: see here

Signed-off-by: dhairyarungta <97079960+dhairyarungta@users.noreply.github.com>
@dhairyarungta dhairyarungta force-pushed the remove-concurrency-target-flag branch from d685db5 to c15899c Compare March 16, 2025 09:36
@dhairyarungta
Copy link
Contributor Author

Done.

@leokondrashov leokondrashov merged commit 2ec56b5 into vhive-serverless:main Jun 20, 2025
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants