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

Add a tool for monitoring log generation rates #17880

Merged
merged 1 commit into from
Dec 1, 2015

Conversation

gmarek
Copy link
Contributor

@gmarek gmarek commented Nov 27, 2015

@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 27, 2015
@gmarek gmarek assigned wojtek-t and unassigned ixdy Nov 27, 2015
@gmarek gmarek force-pushed the log_monitoring branch 2 times, most recently from d1c9d96 to c6a4c95 Compare November 27, 2015 16:16
@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 27, 2015
@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e test build/test passed for commit 5f6a666453481fcb2b7632727940dd963dcbc042.

@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e test build/test passed for commit c6a4c95e91d97d5055c359081a5c559b6eeb16be.

@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e test build/test passed for commit d1c9d969d8d28ff803d7239c525b3ccd43d7df5b.

@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e build/test failed for commit aba4dca76e41e63397b506d036417dd9aaf9a354.

@k8s-bot
Copy link

k8s-bot commented Nov 27, 2015

GCE e2e test build/test passed for commit 3223695ed7f7acbe2112b7c208c530c4a5d9a432.

@@ -89,6 +89,7 @@ func init() {
flag.BoolVar(&testContext.DeleteNamespace, "delete-namespace", true, "If true tests will delete namespace after completion. It is only designed to make debugging easier, DO NOT turn it off by default.")
flag.BoolVar(&testContext.CleanStart, "clean-start", false, "If true, purge all namespaces except default and system before running tests. This serves to cleanup test namespaces from failed/interrupted e2e runs in a long-lived cluster.")
flag.BoolVar(&testContext.GatherKubeSystemResourceUsageData, "gather-resource-usage", false, "If set to true framework will be monitoring resource usage of system add-ons in (some) e2e tests.")
flag.BoolVar(&testContext.GatherLogSizes, "gather-logs-sizes", false, "If set to true framework will be monitoring logs sizes on all machines running e2e tests.")
Copy link
Member

Choose a reason for hiding this comment

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

Can you please be consistent: either logs or log everywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e test build/test passed for commit 5e80cfe067052dec2ba1bc4ac38c5f0a66f43c84.

client *client.Client
closeChannel chan bool
data map[string]map[string]*LogsSizeData
lock *sync.Mutex
Copy link
Member

Choose a reason for hiding this comment

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

Why pointer to mutex, not just mutex?
Same for WaitGroup and below...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It made a constructor a bit nicer IMO.

@gmarek gmarek force-pushed the log_monitoring branch 2 times, most recently from 7cc6cf0 to 8daa21e Compare November 30, 2015 11:12
@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e test build/test passed for commit 7cc6cf08604038dc57fe3b6a27a3345608764b3d.

@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e build/test failed for commit 8daa21ef1cb6a2d5b260cbd7f050511acf00f31f.

apiServerLogsPath, controllersLogsPath, schedulerLogsPath}
)

// LogsSizeData keeps whole timesries of TimestampedSize.
Copy link
Member

Choose a reason for hiding this comment

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

nit: timeseries

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e test build/test passed for commit d897b9c2e6698302adf3c1c4857aef4ddf31c781.

}

type LogsSizeData struct {
data map[string]map[string]*[]TimestampedSize
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need pointer to array here, i.e. why not just:
map[string]map[string][]TimestampedSize
?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how 'immutable' are maps when it comes to slices...

@k8s-bot
Copy link

k8s-bot commented Nov 30, 2015

GCE e2e test build/test passed for commit 6ade0a1.

@wojtek-t
Copy link
Member

wojtek-t commented Dec 1, 2015

LGTM

@wojtek-t wojtek-t added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 1, 2015
@k8s-github-robot
Copy link

Continuous integration appears to have missed, closing and re-opening to trigger it

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Dec 1, 2015

GCE e2e test build/test passed for commit 6ade0a1.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 1, 2015
@k8s-github-robot k8s-github-robot merged commit ea14d1c into kubernetes:master Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants