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

Feature/remove ebs #95

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Feature/remove ebs #95

merged 1 commit into from
Nov 5, 2024

Conversation

ayushisingh29
Copy link
Collaborator

No description provided.

@ayushisingh29 ayushisingh29 force-pushed the feature/remove-ebs branch 4 times, most recently from 10e5117 to da86670 Compare October 31, 2024 21:44
@ayushisingh29 ayushisingh29 requested a review from jolynch November 4, 2024 17:40
Copy link
Contributor

@ramsrivatsa ramsrivatsa left a comment

Choose a reason for hiding this comment

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

Looks good

# temporarily dont suggest EBS instances
if instance.drive is None:
return None

# if we're not allowed to use gp2, skip EBS only types
if instance.drive is None and require_local_disks:
Copy link
Contributor

Choose a reason for hiding this comment

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

can you just flip the default of require_local_disks to true?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point. I have fixed it along with the tests.

@@ -78,70 +81,70 @@ def test_capacity_small_fast():
assert small_result.cluster_params["cassandra.heap.table.percent"] == 0.11


def test_ebs_high_reads():
Copy link
Contributor

Choose a reason for hiding this comment

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

if you did it with the param then you can just pass required_local_disks false to these tests and keep the context where EBS would be useful.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a good point. However, I do want to preserve the old tests as this is a temporary change. And hence commenting out the tests could be a better choice?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If I set "require_local_disks": False and "require_attached_disks": True, in the test then it will test for ebs case. So we are achieving the result of old tests just by passing extra params.

@ayushisingh29 ayushisingh29 requested a review from jolynch November 5, 2024 00:50
@ayushisingh29 ayushisingh29 merged commit 0b25d59 into main Nov 5, 2024
3 checks passed
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.

3 participants