-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
10e5117
to
da86670
Compare
There was a problem hiding this 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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
tests/netflix/test_cassandra.py
Outdated
@@ -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(): |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
da86670
to
c17944e
Compare
c17944e
to
da4f6d6
Compare
No description provided.