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

Reduce verbosity of ping message #894

Merged

Conversation

aleksdmladenovic
Copy link
Contributor

@aleksdmladenovic aleksdmladenovic commented Apr 30, 2024

Description

I improved the flexibility by reducing the warning level of the KEEPALIVE log message.
So when we look at the log output in the k8s examples, there are a lot of ping error messages for KEEPALIVE, but I tracked down the right one and reduced it to a lower log level(Warning) should make that output more readable

Fixes #(764)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please also list any relevant details for your test configuration

Checklist

  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 0 of 1 LGTMs obtained, and pending CI: integration-tests (20.04), integration-tests (22.04), and 2 discussions need to be resolved

a discussion (no related file):
Please rebase on latest main.



nativelink-service/src/worker_api_server.rs line 262 at r1 (raw file):

        err,
        ret(level = Level::INFO),
        level = Level::WARN,

I don't think this is the one you are looking for. I think the one you want is the INFO message of when it sends/receives the ping. I suggest moving it down to DEBUG level.

Copy link
Contributor

@adam-singer adam-singer left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 0 of 1 LGTMs obtained, and pending CI: integration-tests (20.04), integration-tests (22.04), and 2 discussions need to be resolved


nativelink-service/src/worker_api_server.rs line 262 at r1 (raw file):

Previously, allada (Nathan (Blaise) Bruer) wrote…

I don't think this is the one you are looking for. I think the one you want is the INFO message of when it sends/receives the ping. I suggest moving it down to DEBUG level.

iirc the INFO level includes ping backs, should we move those log messages to debug ?

@aleksdmladenovic aleksdmladenovic force-pushed the reduce-keepalive-log-message-level branch from dcded09 to c3126db Compare May 13, 2024 02:09
@CLAassistant
Copy link

CLAassistant commented May 13, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 LGTMs obtained, and 2 discussions need to be resolved


nativelink-service/src/worker_api_server.rs line 262 at r1 (raw file):

Previously, adam-singer (Adam Singer) wrote…

iirc the INFO level includes ping backs, should we move those log messages to debug ?

Yeah, lets use INFO.

@aleksdmladenovic aleksdmladenovic force-pushed the reduce-keepalive-log-message-level branch from c3126db to be72f81 Compare May 14, 2024 01:38
@aleksdmladenovic aleksdmladenovic requested a review from allada May 14, 2024 01:38
Copy link
Contributor Author

@aleksdmladenovic aleksdmladenovic left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 LGTMs obtained, and pending CI: Analyze (javascript-typescript), Analyze (python), Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Local / ubuntu-22.04, Publish image, Publish nativelink-worker-lre-cc, Remote / large-ubuntu-22.04, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), macos-13, pre-commit-checks, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, windows-2022 / stable, and 2 discussions need to be resolved


nativelink-service/src/worker_api_server.rs line 262 at r1 (raw file):

Previously, allada (Nathan (Blaise) Bruer) wrote…

Yeah, lets use INFO.

Done.

Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: 1 of 1 LGTMs obtained, and 1 discussions need to be resolved

I have reduced the keep alive log message level from `ERROR` to `INFO`.
@aleksdmladenovic aleksdmladenovic force-pushed the reduce-keepalive-log-message-level branch from be72f81 to 98e4f6a Compare May 15, 2024 07:36
Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 1 LGTMs obtained

@allada allada merged commit f9e67aa into TraceMachina:main May 15, 2024
25 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.

Reduce verbosity of ping message
4 participants