Repository navigation
Conversation
Signed-off-by: Bin Chai <binc@nvidia.com>
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.
Existing YARN reports compare application-attributed worker costs, but do not calculate annual fleet expense or how long migration and hardware purchases take to pay back. A GPU run can cost less while an always-on GPU fleet costs more over the year.
This adds
yarn-resource-cost projectand aproject_costs()Python API to consume two existing single-run JSON reports plus an explicit annual plan. It reuses complete application accounting and price provenance, with application IDs selected by the caller.Validation: 140 tests and 33 subtests passed on Python 3.12; all 21 new tests also passed on Python 3.10. Python compilation, installed-console execution, standalone bundle build/extraction/tests and
git diff --checkpassed. Tests include the existing synthetic ResourceManager fixture and hand-checkable financial examples; no live cloud or GPU workload was run.This is a constant-price/frequency projection. Callers establish workload equivalence and supply paid uptime and costs; annual resource capacity is a necessary check, not a scheduling simulation. Owned-hardware expenses use explicit cash inputs rather than inferred depreciation, power or replacement schedules.
Draft for feedback on scope and integration, related to NVIDIA/cudf-spark#16220. Maintainers have not yet settled the destination of that contribution; this proposes the annual planning layer within the existing benchmark cost tool.