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 pvc list logging #394

Merged
merged 1 commit into from
May 11, 2022
Merged

Conversation

yolgun
Copy link
Contributor

@yolgun yolgun commented May 10, 2022

We are running a job with 600 replicas. Unlike other logs, this one grows with replica count. It started breaking our GCP structured logging. Can we log count instead of all items?

We are running a job with 600 replicas. Unlike other logs, this one grows with replica count. It started breaking our GCP structured logging. Reporting only count instead of all items.
@jto jto merged commit 48d7174 into spotify:master May 11, 2022
@@ -599,7 +599,7 @@ func (observer *ClusterStateObserver) observePersistentVolumeClaims(
}
log.Info("Observed persistent volume claim list", "state", "nil")
} else {
log.Info("Observed persistent volume claim list", "state", *observedClaims)
log.Info("Observed persistent volume claim list", "state", len(observedClaims.Items))
Copy link
Contributor

Choose a reason for hiding this comment

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

good call here!

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.

4 participants