Add vector graph build diagnostics logging#3305
Conversation
Summary of ChangesHello @tae898, 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 observability of the vector graph building process by integrating detailed diagnostic logging. It provides insights into memory consumption (heap and off-heap) and the size of various index-related files, which is crucial for performance analysis, benchmarking, and troubleshooting during vector index creation. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. 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
|
🧪 CI InsightsHere's what we observed from your CI run for 763997c. 🟢 All jobs passed!But CI Insights is watching 👀 |
There was a problem hiding this comment.
Code Review
This pull request introduces diagnostic logging for vector graph builds, which is a useful feature for troubleshooting and performance tuning. The implementation is straightforward, adding a new configuration flag and capturing memory and file size metrics during the build process. My review includes two suggestions: one to change the default value of the new configuration flag to be off by default in production, and another to simplify a utility method for better code quality.
| final long now = System.currentTimeMillis(); | ||
| final boolean progressed = processedNodes != lastLoggedProcessed[0]; | ||
| final boolean timeElapsed = now - lastLogTimeMs[0] >= 2000; | ||
| final boolean timeElapsed = now - lastLogTimeMs[0] >= 5000; |
* Add vector graph build diagnostics logging * Tweak graph build diagnostics defaults * Throttle graph build logs to 5s (cherry picked from commit 9202492)
I mocked what's done in https://github.com/datastax/jvector/blob/fe3f4d17a39a07b45a99403a615d8e65e9ddf8bf/jvector-examples/src/main/java/io/github/jbellis/jvector/example/benchmarks/QueryTester.java#L84 so that in arcadedb vector building we also get stats like