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 replication_controller log spam #44391

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

ncdc
Copy link
Member

@ncdc ncdc commented Apr 12, 2017

Decrease verbosity and reword 'Observed updated replication controller
...' now that the issue it was added for has been fixed.

This was originally added to debug #31981, and it was fixed back in September 2016.

cc @gmarek @wojtek-t @Kargakis @eparis @smarterclayton

@ncdc ncdc added the release-note-none Denotes a PR that doesn't merit a release note. label Apr 12, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 12, 2017
@ncdc
Copy link
Member Author

ncdc commented Apr 12, 2017

@sttts assuming this gets approved, let's pick it

@k8s-reviewable
Copy link

This change is Reviewable

@eparis
Copy link
Contributor

eparis commented Apr 12, 2017

Should it also be gated on: oldRC.Spec.Replicas != curRC.Spec.Replicas ? Once its at V(4) I'm not likely to ever see it, but I think its still spam a lot of the time. No?

@wojtek-t wojtek-t self-assigned this Apr 12, 2017
@wojtek-t
Copy link
Member

/lgtm
/approve

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 12, 2017
@sttts sttts added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 12, 2017
@sttts
Copy link
Contributor

sttts commented Apr 12, 2017

@ncdc picked.

@0xmichalis 0xmichalis removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 12, 2017
@@ -202,8 +202,7 @@ func (rm *ReplicationManager) updateRC(old, cur interface{}) {
oldRC := old.(*v1.ReplicationController)
curRC := cur.(*v1.ReplicationController)

// TODO: Remove when #31981 is resolved!
glog.Infof("Observed updated replication controller %v. Desired pod count change: %d->%d", curRC.Name, *(oldRC.Spec.Replicas), *(curRC.Spec.Replicas))
glog.V(4).Infof("Observed updated replication controller %v. Desired pod count change: %d->%d", curRC.Name, *(oldRC.Spec.Replicas), *(curRC.Spec.Replicas))
Copy link
Contributor

Choose a reason for hiding this comment

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

Gate this as per @eparis suggestion and also remove the if clause below since we already log status updates in the controller

Copy link
Member Author

Choose a reason for hiding this comment

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

On it

Decrease verbosity and reword 'Observed updated replication controller
...' now that the issue it was added for has been fixed.
@ncdc
Copy link
Member Author

ncdc commented Apr 12, 2017

@eparis @Kargakis @wojtek-t updated based on comments

@0xmichalis
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 12, 2017
@wojtek-t
Copy link
Member

lgtm

@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kargakis, ncdc, wojtek-t

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 12, 2017
@ncdc
Copy link
Member Author

ncdc commented Apr 12, 2017

@k8s-bot cvm gce e2e test this

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit e4752d6 into kubernetes:master Apr 13, 2017
@ncdc ncdc deleted the reduce-rc-logging branch April 18, 2017 18:01
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants