-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
NIFI-10167: Added advanced timing metrics for processors, such as CPU… #6156
Conversation
… Usage, time reading/writing content repo, process session commit time, etc. Exposed via nifi.sh diagnostics and made configurable via nifi.properties
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.
Thanks for introducing this new diagnostic capability @markap14! The implementation looks straightforward, just noted the opportunity for updating documentation, and aligning the internal default setting.
.../nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/conf/nifi.properties
Show resolved
Hide resolved
nifi-commons/nifi-properties/src/main/java/org/apache/nifi/util/NiFiProperties.java
Outdated
Show resolved
Hide resolved
…Properties to match the default in the assembly
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.
Thanks for making the adjustments @markap14! The tracking appears to work as designed, and provides some great information!
The only remaining concern is the length of each line in the tabular output. Perhaps using acronyms for column headers is one option, which would be very helpful when reading the diagnostics on smaller screens.
details.add(String.format(PROCESSOR_TIMING_FORMAT, "Processor ID", "Processor Name", "Processor Type", "Process Group Name", "Processing Secs", | ||
"CPU Secs (% time using CPU)", "Pct CPU Time Used by Proc", "Disk Read Secs", "Disk Write Secs", "Session Commit Secs", "GC Millis", "MB Read", "MB Written")); |
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.
Understanding the need to balance readability with length, the current headers and column width produce very long lines in the diagnostic output, making it difficult to read without a very high resolution screen.
What do you think about using shorter names for most of the numeric fields, and then condensing the column width for those fields? Even the Processor Type
field could be shortened, but the biggest gain would be for the numeric columns. Perhaps using acronyms that could be listed prior to the tabular output?
PS = Processing Seconds
CSP = CPU Seconds and percent time using CPU
PCTP = Percent CPU time used by Processor
DR = Disk Read Seconds
DW = Disk Write Seconds
SC = Session Commit Seconds
GC = Garbage Collection Milliseconds
MR = Megabytes Read
MW = Megabytes Written
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.
-1. While I can appreciate the desire for conciseness, I think the readability is significantly hindered by reducing the column names to abbreviations. The reality is that if you're using NiFi, you generally are going to have a reasonably large screen, or the canvas is going to be too cramped anyway. And you can always grab the section out and throw it into a spreadsheet if you needed to. Additionally, the width needs to be fairly wide for some of these columns anyway. So having a heading like "MW" for a column that needs to be sufficiently wide to fit something like "4,820,182.54" is a bit awkward as well, when the heading could be explicit.
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.
Thanks for the reply @markap14, that's a good point about the potential for larger numbers in column values. In light of the variety of options, and potential for different approaches down the road, leaving it as-is sounds good for now.
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.
Thanks for addressing the feedback @markap14, the current version looks good! +1 merging
Thanks @exceptionfactory I appreciate you reviewing & working with me to get this merge. |
… Usage, time reading/writing content repo, process session commit time, etc. Exposed via nifi.sh diagnostics and made configurable via nifi.properties
Summary
NIFI-00000
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000
NIFI-00000
Pull Request Formatting
main
branchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-check
Licensing
LICENSE
andNOTICE
filesDocumentation