Add large_instance_bias for Cassandra model#210
Draft
homatthew wants to merge 1 commit intoNetflix-Skunkworks:mainfrom
Draft
Add large_instance_bias for Cassandra model#210homatthew wants to merge 1 commit intoNetflix-Skunkworks:mainfrom
homatthew wants to merge 1 commit intoNetflix-Skunkworks:mainfrom
Conversation
Adds a `large_instance_bias` parameter that penalizes selecting the largest instance in a family. This reserves max-size instances for emergency scale-ups (e.g., avoid selecting i3.4xlarge so i3.4xlarge is available if we need to scale up quickly). Implementation: - Added `large_instance_bias` field to NflxCassandraArguments - Added helper to compute max instance size per family from hardware - Applied rank penalty in plan_certain() sort key for largest instances - Annotated plans with is_largest_in_family metadata in cluster_params - Override regret() in Cassandra model to add regret for largest instances (supports both plan_certain() and plan() uncertainty planning paths) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.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.
Summary
large_instance_biasparameter that penalizes selecting the largest instance in a familyImplementation
large_instance_biasfield toNflxCassandraArguments_compute_max_instance_size_per_family()in capacity_planner.pyplan_certain()sort key for largest instancesis_largest_in_familymetadata incluster_paramsregret()in Cassandra model to add regret for largest instances (supports bothplan_certain()andplan()uncertainty planning paths)Usage
Test plan
🤖 Generated with Claude Code