Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force the planner to use a certain instance type #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anujphadke
Copy link

No description provided.

@@ -365,16 +374,17 @@ def _plan_certain(

plans = []
for instance in hardware.instances.values():
exact_match = instance.family_separator in instance.family
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always return true false. I think you want to do the for loop like I suggested inside the method against the strings in instance_families

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jolynch - Does it make sense to have separate functions?
def _allow_instance
and
def _allow_drives

We use this function for the disk drives below on line 377. Should we keep this change specific to instance?
https://github.com/Netflix-Skunkworks/service-capacity-modeling/blob/main/service_capacity_modeling/capacity_planner.py#L377

@@ -578,4 +588,4 @@ def _sub_models(


planner = CapacityPlanner()
planner.register_group(netflix.models)
planner.register_group(netflix.models)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: add back in a newline (UNIX mode not Windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants