-
Notifications
You must be signed in to change notification settings - Fork 60
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 logging of timings, counts, and memory usage #128
Add logging of timings, counts, and memory usage #128
Conversation
Maybe the memory usage logging could go to debug instead of info? |
I think debug since once addressed we should not always need it, and it could clutter the logs. |
@agrare Looks ok to me, though I agree it should probably be debug level info. |
a22dc2c
to
0ce111e
Compare
Okay memory usage logged as debug now |
c341b58
to
179f384
Compare
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.
LGTM
@template_uris.each { |uri, template| template[:content] = download_template(uri) } | ||
_log.info("Retrieving templates...Complete - Count [#{@template_uris.count}]") | ||
|
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.
@agrare - The downloading of orchestration templates is expensive, can we monitor the memory usage there too?
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.
@bronaghs oh yeah definitely, I missed this one because it didn't use the usual inv collect method.
179f384
to
14a1779
Compare
Checked commit agrare@14a1779 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@djberg96 - Can logging be added to the azure-armrest gem where we get private images? That code looks very expensive and I think we could do with some insight there. |
Additional logging around collecting inventory specifically how long it took, how many items were returned, and the memory usage after each collection.
https://bugzilla.redhat.com/show_bug.cgi?id=1431912