-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Log main golang runtime env vars #108480
Log main golang runtime env vars #108480
Conversation
/hold Will add to other core components too if we agree that it's what we want. |
cmd/kube-apiserver/app/server.go
Outdated
@@ -151,6 +151,8 @@ cluster's shared state through which all other components interact.`, | |||
func Run(completeOptions completedServerRunOptions, stopCh <-chan struct{}) error { | |||
// To help debugging, immediately log version | |||
klog.Infof("Version: %+v", version.Get()) | |||
|
|||
klog.Infof("Golang settings: GOGC=%s, GOMAXPROCS=%s, GOTRACEBACK=%s", os.GetEnv("GOGC"), os.GetEnv("GOMAXPROCS"), os.GetEnv("GOTRACEBACK")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd/kube-apiserver/app/server.go:155:75: undefined: os.GetEnv
4247519
to
fb1ef4b
Compare
looks like this needs a |
fb1ef4b
to
399ae7b
Compare
/lgtm |
399ae7b
to
06db57b
Compare
@liggitt - I added it to other components too - PTAL |
@@ -140,6 +140,8 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched * | |||
// To help debugging, immediately log version | |||
klog.InfoS("Starting Kubernetes Scheduler", "version", version.Get()) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-existing, but for consistency, add version info as well?
klog.Infof("Version: %+v", version.Get())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's above - just in a different format. Should we change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, missed it because the line didn't start with version:
. nah, I wouldn't change it here
/lgtm |
/hold cancel |
/lgtm /retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, liggitt, wojtek-t The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/triage accepted |
/triage accepted |
|
06db57b
to
069a8d2
Compare
@dims - fixed, PTAL |
now verify: gofmt tripped up 🤣 :) |
069a8d2
to
ef2e32a
Compare
Sorry for that... should be fixed now |
/lgtm |
/retest |
Ref #108357
/kind cleanup
/priority important-longterm
/sig scalability