-
Notifications
You must be signed in to change notification settings - Fork 263
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
kn service describe should show # of instances #842
Comments
Would it perhaps be clearer to call this out by including a more explicit property under
|
I totally agree that the number of current replicas is useful to show (I hope this is part of the Revision resource, don't know this by heart). The generation is useful when compared against other revisions, just to easily spot which one is newer (also newer version) in which one is older. As absolute number, the generation is not of much use, agreed. |
There is always kind of a compromise between available screen estate and verbosity, especially when it comes to lists. The list of revisions might not be that long to maybe we overdid a bit with the conciseness. I would like to rework the presented information anyway, as I'm also not so happy how we visualize the "@latest" property and the images hashes (e.g. it could be that the same revision is listed twice in |
Knative revisoins don't in themselves include information about number of instances. This would work as a plugin though. |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
If we would get to the number that would be quite cool but as mentioned it's really hard to impossible to get the number of running pods that belong to a revision as this required inspecting the corresponding Otherwise I agree that the presentation of |
This touches on something we've discussed before... are we a K8s project or not? IMO it feels like we're doing a disservice to our users by avoiding something as useful as this. However, having said that, can we support this IF the API (data) is available and just return |
This issue is stale because it has been open for 90 days with no |
ping |
/remove-lifecycle stale |
@duglin I still think that your ask is quite reasonable but I still don't see an easy solution to implement this. Technically we could implement it ...
|
We could update the Revision's status with the number of replicas surfaced by the Deployment no problem. |
Ah, that would be very cool and very helpful so that we can visualize this with Thx! |
Having the revision.status show the desired size of the deployment would be nice. If I understood it properly, on yesterday's API call I think Matt mentioned the idea of introducing an abstraction between Revisions and Deployments so that someone could plug-in something other than a Deployment to manage the instances. While it would seem odd, it might be possible that the desired size of that yet-to-be-created scaling resource might not be exposed via it's API (meaning it could be a write-only field). And therefore having Knative's data (current desired scale) kept in Knative owned resources would be nice. @markusthoemmes I'm assuming it's the desired count, not actual count - right? |
@duglin up to you to decide. Both would work for deployments. |
interesting, I would think it would be annoying to update the revision's status each time some pods died. But if it's trivial, then having a "desired" and "actual" instance count would be really cool. |
Trivial to implement, non-trivial in terms of API churn, potentially :P |
Well, it's easy in terms of API as well (just take it off KPA) and populate status. |
Can we start poking at this in the client given knative/serving#11038 has landed |
@dprotaso thanks for the heads, going to hunt for somebody to implement it ;-) |
Note to the implementer: When checking for the corresponding status fields (actualReplica, desiredReplicas) care should be taken that these fields might be missing when running against older Knative cluster. |
Today
kn service describe
will show this in it's output:The
[6]
is interesting. I believe that the generation number - or in user's terms, my version # of my app. That's (sort of) interesting, but at first I thought it was the # of instances of this Revision that were running... that would be far more useful to me.Proposal: show the # of instances of each revision instead of the generation #. I'm not really sure what the generation # tells the user, or what interesting thing they can do with it. It seems to me that seeing the revision name change in that list would be enough to indicate that there are multiple revisions out there.
This may be controversial because it means using a non-knative api (e.g. pods, or deployment) but I think we need to think about what's best (and most useful) for the user, and I think being able to see how their app is scaling (perhaps out of control!) would be very useful.
We could even make it conditional, and try to get the list number of instances and if it fails due to an known API then just not show it (and no error msg), but if the API is there then show the info.
The text was updated successfully, but these errors were encountered: