feat(monitoring): add GC stats to CS charts LS-344#752
Conversation
Summary of ChangesHello @GigaCronos, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the chunkserver monitoring capabilities by adding a new chart that visualizes the rate of chunk deletions performed by the Garbage Collector. This provides better insight into the efficiency and activity of the GC process on individual chunkservers, aiding in performance analysis and debugging. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds a new chart to the chunkserver monitoring CGI to display the number of chunks purged by the Garbage Collector per minute. The changes are well-contained and correctly implement the new feature by adding a new statistic, tracking it in HddStats, and exposing it through the charting infrastructure. The implementation looks solid. I have a few minor suggestions to improve code formatting for better readability.
c9a73ad to
b22ce6d
Compare
d8bf3cd to
2483a82
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request successfully adds a new chart for monitoring Garbage Collector purges on the chunkserver. The changes are implemented consistently across the C++ backend and the Python CGI script. The core logic looks good.
I've provided a few review comments. One addresses header dependency management. The others suggest reverting some code formatting changes that reduce readability and consistency with the existing codebase.
d5b77ea to
5588ad7
Compare
ralcolea
left a comment
There was a problem hiding this comment.
Great job @GigaCronos! 👍
5588ad7 to
8a4df76
Compare
This commit introduces a chunkserver-side feature to display Garbage Collector(GC) deletions per minute in the CGI chart of the chunkserver(CS). Apply formatting to function" to chartsdata_refresh function. Signed-off-by: GigaCronos <jorge.cabrera@leil.io>
8a4df76 to
0e7e736
Compare
This commit introduces a chunkserver-side feature to display Garbage Collector(GC) deletions per minute in the CGI chart of the chunkserver(CS).
When a chunk is moved to the .trash.bin directory(if Garbage Collector is ENABLED) the chunk is marked as deleted and added to chunks deleted stats in the chunkserver. Tracking when the chunk is actually deleted(purged) by the GC is needed for better testing of this feature and more precise information.