Add portable YARN resource cost tool - #265
Open
gerashegalov wants to merge 2 commits into
Open
Conversation
Signed-off-by: Gera Shegalov <gshegalov@nvidia.com>
Signed-off-by: Gera Shegalov <gshegalov@nvidia.com>
Greptile SummaryThe PR adds a provider-neutral YARN allocation and cost ledger with EMR, Dataproc, and on-premises adapters.
Confidence Score: 4/5The PR should not merge until duplicate baseline comparison keys are detected or represented without silently dropping applications. The default application-name comparison can collapse repeated baseline applications into one dictionary entry, producing an incomplete or incorrectly paired comparison report. Files Needing Attention: yarn-resource-cost/yarn_resource_cost.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
E[Spark event logs] --> S[Application selection and metadata]
Y[YARN RM/NM logs] --> L[Container allocation ledger]
S --> A[Application accounting]
L --> A
N[Node classification] --> A
A --> G{Ledger complete?}
G -- No --> I[Evidence and warnings only]
G -- Yes --> P[Apply catalog or live pricing]
P --> O[JSON, CSV, and comparison output]
I --> O
Reviews (1): Last reviewed commit: "Make EMR CLI test region-independent" | Re-trigger Greptile |
zpuller
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #264.
Summary
Verification
python3 -m unittest discover -s yarn-resource-cost -p "test*.py"(36 tests)git diff --checkFollow-up staging
This PR establishes the common engine and initial documented adapters. Follow-up PRs under #264 can extend native Dataproc pricing/log export workflows and queue-specific FairScheduler configuration evidence without changing the accounting contract.