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 logging of timings, counts, and memory usage #128

Merged
merged 1 commit into from
Sep 20, 2017

Conversation

agrare
Copy link
Member

@agrare agrare commented Sep 20, 2017

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

@agrare
Copy link
Member Author

agrare commented Sep 20, 2017

Maybe the memory usage logging could go to debug instead of info?

@miq-bot miq-bot added the wip label Sep 20, 2017
@bronaghs
Copy link

I think debug since once addressed we should not always need it, and it could clutter the logs.

@djberg96
Copy link
Collaborator

@agrare Looks ok to me, though I agree it should probably be debug level info.

@agrare agrare force-pushed the azure_inventory_collection_logging branch from a22dc2c to 0ce111e Compare September 20, 2017 14:01
@agrare
Copy link
Member Author

agrare commented Sep 20, 2017

Okay memory usage logged as debug now

@agrare agrare force-pushed the azure_inventory_collection_logging branch 2 times, most recently from c341b58 to 179f384 Compare September 20, 2017 14:10
Copy link
Collaborator

@djberg96 djberg96 left a 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}]")

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?

Copy link
Member Author

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.

@agrare agrare force-pushed the azure_inventory_collection_logging branch from 179f384 to 14a1779 Compare September 20, 2017 14:26
@miq-bot
Copy link
Member

miq-bot commented Sep 20, 2017

Checked commit agrare@14a1779 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@agrare agrare changed the title [WIP] Add logging of timings, counts, and memory usage Add logging of timings, counts, and memory usage Sep 20, 2017
@agrare agrare removed the wip label Sep 20, 2017
@bronaghs
Copy link

@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.

@bronaghs bronaghs merged commit d3e8203 into ManageIQ:master Sep 20, 2017
@bronaghs bronaghs added this to the Sprint 70 Ending Oct 2, 2017 milestone Sep 20, 2017
@agrare agrare deleted the azure_inventory_collection_logging branch September 20, 2017 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants