Skip to content

klog update#115277

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
pohly:klog-update
Mar 1, 2023
Merged

klog update#115277
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
pohly:klog-update

Conversation

@pohly

@pohly pohly commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

The new klog v2.90.0 contains several performance improvements. To measure those as realistically as possible, logfiles from https://testgrid.k8s.io/sig-instrumentation-tests#kind-json-logging-1.26 were downloaded and the corresponding benchmarks that simulate writing those were updated (included in #115358).

klog v2.90.1 restores immediate discarding of large buffers and extends the ktesting logger.

Here is a comparison using these benchmarks:

name                                               old msgs/s  new msgs/s  delta
Encoding/v3/kind-worker-kubelet/structured-36       293k ± 0%   314k ± 0%   +7.00%  (p=0.000 n=9+10)
Encoding/v3/kind-worker-kubelet/JSON-36             328k ± 0%   334k ± 0%   +2.02%  (p=0.000 n=9+10)
Encoding/v3/kube-apiserver/structured-36            103k ± 3%   146k ± 3%  +41.59%  (p=0.000 n=9+10)
Encoding/v3/kube-apiserver/JSON-36                  170k ± 4%   170k ± 5%     ~     (p=0.971 n=10+10)
Encoding/v3/kube-controller-manager/structured-36   325k ± 4%   354k ± 4%   +8.88%  (p=0.000 n=10+10)
Encoding/v3/kube-controller-manager/JSON-36         331k ± 2%   338k ± 2%   +2.33%  (p=0.000 n=9+10)
Encoding/v3/kube-scheduler/structured-36            158k ± 2%   185k ± 4%  +17.67%  (p=0.000 n=7+10)
Encoding/v3/kube-scheduler/JSON-36                  174k ± 3%   185k ± 3%   +6.53%  (p=0.000 n=10+10)

Does this PR introduce a user-facing change?

performance improvements in klog

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/apiserver area/cloudprovider area/code-generation area/dependency Issues or PRs related to dependency changes area/kubectl area/test sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. wg/structured-logging Categorizes an issue or PR as relevant to WG Structured Logging. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Jan 23, 2023
@k8s-ci-robot k8s-ci-robot requested review from a team, alexzielenski and andrewsykim January 23, 2023 21:09
@pohly pohly force-pushed the klog-update branch 2 times, most recently from 44da35a to f5de090 Compare January 24, 2023 10:08
Comment thread vendor/k8s.io/klog/v2/k8s_references.go Outdated
@pohly pohly changed the title klog update WIP: klog update Feb 3, 2023
@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Feb 3, 2023
@pohly

pohly commented Feb 15, 2023

Copy link
Copy Markdown
Contributor Author

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 15, 2023
@pohly pohly force-pushed the klog-update branch 2 times, most recently from 4448a61 to a990eae Compare March 1, 2023 15:45
@pohly pohly changed the title WIP: klog update klog update Mar 1, 2023
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 1, 2023
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 1, 2023
This improves performance of the text formatting and ktesting.

Because ktesting no longer buffers messages by default, one unit
test needs to ask for that explicitly.
@@ -0,0 +1,173 @@
/*
Copyright 2019 The Kubernetes Authors.
Copyright 2020 Intel Coporation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's a surprising copyright header (and a typo)

@liggitt

liggitt commented Mar 1, 2023

Copy link
Copy Markdown
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 1, 2023
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: c9cdc4b5ed3296718e3dc01afc0c9c6e8a325136

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, mrunalp, pohly, serathius, thockin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 1, 2023
@k8s-triage-robot

Copy link
Copy Markdown

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@k8s-ci-robot

k8s-ci-robot commented Mar 1, 2023

Copy link
Copy Markdown
Contributor

@pohly: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubernetes-e2e-kind-kms 961819a link false /test pull-kubernetes-e2e-kind-kms

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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 understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit 51dedff into kubernetes:master Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/apiserver area/cloudprovider area/code-generation area/dependency Issues or PRs related to dependency changes area/kubectl area/kubelet area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. sig/auth Categorizes an issue or PR as relevant to SIG Auth. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/cloud-provider Categorizes an issue or PR as relevant to SIG Cloud Provider. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/instrumentation Categorizes an issue or PR as relevant to SIG Instrumentation. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on. wg/structured-logging Categorizes an issue or PR as relevant to WG Structured Logging.

Projects

Archived in project
Archived in project

Development

Successfully merging this pull request may close these issues.