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
scheduler: contextual logging - WithName and WithValue #111155
scheduler: contextual logging - WithName and WithValue #111155
Conversation
@knelasevero: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @knelasevero. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
/sig scheduling |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
/retest |
@alculquicondor I don't see those changes here. The only change in cmd/ is because of changes in the scheduler.New inside of pkg/ |
ah, I was confused by the changes in |
any chance you can split the PRs again (and maybe a few others too)? I have very limited time to review and maybe we won't be able to merge this entire PR, but we can still make progress. |
Maybe someone from the community would want to take that task and push these splits of this PR forward? Since they can use this PR as reference it would be easy to anyone wanting to contribute (I can help, of course, but I may have to focus on some other things). |
/help |
/help-wanted |
Maybe it doesn't work on PRs |
@alculquicondor: any suggestion on how to split this up? By directories? Looking at the commit history, all commits probably can be squashed into one, i.e. there are no commits which could be merged separately. |
Everything under The rest is a bit unclear. Maybe it's possible to have a PR for each of the folders in |
PR needs rebase. 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. |
I had a look over kubernetes/enhancements#3077. Just tagging some people here to see if they want to pick this up: @mengjiao-liu Would any of you be interested in picking this one up? The work would mean basically splinting the changes of #111155 into multiple PRs, as described by @alculquicondor in #111155 (comment) whoever picks this up can ignore the commit history here (#111155) and create new commits that make sense in each split PR. |
I might be able to do some, but I wouldn't be able to start on anything for at least 2 weeks |
code freeze is tomorrow, so I think the boat has sailed for this release. |
I would like to pick this up, but unfortunately, this won't be possible to be done in a couple of days |
I can help too, but time is too urgent before the code freeze, both for contributors and reviewers, maybe we can finish it in the next version. |
Please see #91633 (comment). |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/sig instrumentation |
Work continues in #91633 (comment) /close |
@mengjiao-liu: Closed this PR. In response to this:
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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This makes kube-scheduler log output more useful.
Which issue(s) this PR fixes:
Related-to: #91633 Built on top of #110833 (Just rebased latest changes)
Special notes for your reviewer:
The basic work is in the initial commit of that WIP PR. The other commits (in that WIP PR) start with full instrumentation and then gradually reduce the runtime overhead.
I chose to create this PR already pointing to the scheduler: use WithName and WithValues commit.
I ran the perf tests a few times, and yeah, we have some overhead, but I personally think it is worth it [?]. Whole idea was to have named loggers initially. I think this is a nice first step and we can go to the other more specific improvements after this.
I rebased changes from master here, and chose to use the FailureHandler that came from there. Please let me know if I did something wrong in this rebase.
After this gets merged there's some followup work to be done (when ctx logging hits GA): #111672
Does this PR introduce a user-facing change?