Add cost methods for EVCache, Kafka, Cassandra with CostAwareModel mixin#206
Merged
homatthew merged 0 commit intoNetflix-Skunkworks:mho/cost-baseline-and-methodsfrom Jan 21, 2026
Conversation
homatthew
commented
Jan 16, 2026
| class CostAwareModel: | ||
| """Mixin for models that implement cost calculation methods. | ||
|
|
||
| This is a workaround to avoid pylint abstract-method warnings. Only models |
Contributor
Author
There was a problem hiding this comment.
This can be folded into the original cap planning models once we have it implemented across the board. aurora / rds are a little tricky for example
3264f6e to
5911bc0
Compare
homatthew
commented
Jan 21, 2026
| ) | ||
| ] | ||
| # Calculate service costs (network + backup) using the model's service_costs method | ||
| # This is defined later in NflxCassandraCapacityModel but we call it here for DRY |
Contributor
Author
There was a problem hiding this comment.
Oops. This is a weird GPT comment. I will fix this
5911bc0
into
Netflix-Skunkworks:mho/cost-baseline-and-methods
4 checks passed
Contributor
Author
|
I did not mean to merge this 🫤 . I'll recreate it in stacked commit style |
Contributor
Author
|
Continued in #212 |
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.
Summary
CostAwareModelmixin for models that implement cost calculation methodscluster_costs()andservice_costs()to EVCache, Kafka, and Cassandra modelsDesign
Models that compute costs inherit from both
CapacityModelandCostAwareModel:This mixin can be folded into
CapacityModelonce all models implement cost methods.Test plan
🤖 Generated with Claude Code