Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using --concurrency instead of --concurrency-limit #584

Closed
duglin opened this issue Dec 20, 2019 · 12 comments
Closed

Consider using --concurrency instead of --concurrency-limit #584

duglin opened this issue Dec 20, 2019 · 12 comments
Labels
good first issue Denotes an issue ready for a new contributor. kind/feature New feature or request kind/proposal Issues or PRs related to proposals.

Comments

@duglin
Copy link
Contributor

duglin commented Dec 20, 2019

In what area(s)?

Classifications:
/kind good-first-issue
/kind proposal

Describe the feature:

Consider using --concurrency instead of --concurrency-limit to more closely align with the yaml that uses containerConcurrency. The use of the word limit, while technically accurate, is a bit of a deviation from what people would expect if they bounce between the yaml and kn. Plus, it's less typing :-)

This issue isn't too technical, but more of a UX concern.

@duglin duglin added the kind/feature New feature or request label Dec 20, 2019
@knative-prow-robot knative-prow-robot added good first issue Denotes an issue ready for a new contributor. kind/proposal Issues or PRs related to proposals. labels Dec 20, 2019
@cppforlife
Copy link

might as well go with --container-concurrency

@duglin
Copy link
Contributor Author

duglin commented Jan 7, 2020

While it's a bit long, I would prefer that to what we have today since at least it's a direct (word for word) match and doesn't require thinking :-)

@rhuss
Copy link
Contributor

rhuss commented Jan 21, 2020

@duglin what would you do then with the --concurrency-target option ? Up to now both are on the same level in the options, which is not so bad IMO. We could think about a --concurrency which then set botj, target and limit to the same value.

wdyt ?

@duglin
Copy link
Contributor Author

duglin commented Jan 22, 2020

The annotations in question are:

- autoscaling.knative.dev/target
- autoscaling.knative.dev/containerConcurrency

And today these map to kn options as:

--concurrency-target
--concurrency-limit

Based on a slack chat with @vagababov, target is only meaningful when CC is zero, so setting them both to the same value doesn't seem right, except in the zero case.

w.r.t. naming... it's hard. It would be easier if the annotations were more consistent. E.g. if it was containerTarget. "Target" is just such a generic term that using that as-is on the cmd line doesn't seem friendly enough, so prefixing it with concurrency (while inconsistent) is probably the right thing to do.

I think I'm leaning towards:

--concurrency-target
--concurrency

because even though concurrency isn't 100% aligned with the yaml, this does present some consistency between these two options. Going with --container-concurrency, while aligned with the yaml, I think is harder for people to mentally align with --concurrency-target.

@rhuss
Copy link
Contributor

rhuss commented Jan 22, 2020

  • autoscaling.knative.dev/target
  • autoscaling.knative.dev/containerConcurrency

To be precise, for the --concurrency-target you are right, however for --concurrency-limit we are using the CRD field .spec.containerConcurrency, not an annotation.

I don't like to be inconsistent with respect to the concurrency option naming. So I still like the current, symmetric version of --concurrency-limit and --concurrency-target.

@rhuss
Copy link
Contributor

rhuss commented Jan 22, 2020

But maybe I don't understand those options properly. My mental picture is of that of a soft (target) and hard (limit) limit. But I might be wrong here, and need to catch up.

@duglin
Copy link
Contributor Author

duglin commented Jan 22, 2020 via email

@maximilien
Copy link
Contributor

Agree with @rhuss with the beauty and simplicity of concurrency-target and concurrency-limit.

Closing this unless others can chime with better arguments.

@maximilien
Copy link
Contributor

maximilien commented Jan 22, 2020

/assign @maximilien

@knative-prow-robot
Copy link
Contributor

@maximilien: GitHub didn't allow me to assign the following users: maxim.

Note that only knative members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @maxim

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@maximilien
Copy link
Contributor

/close

@knative-prow-robot
Copy link
Contributor

@maximilien: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

dsimansk added a commit to dsimansk/client that referenced this issue Jan 25, 2021
* chore: Add ppc64 to cross build

* fix: Use serving from release branch

* fix: Use serverless operator release branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor. kind/feature New feature or request kind/proposal Issues or PRs related to proposals.
Projects
None yet
Development

No branches or pull requests

5 participants