-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
*: update and fix benchmark script #1264
Conversation
bench/bench.py
Outdated
@@ -250,30 +257,22 @@ def run(): | |||
max_duration / total_ops * 1000 * 1000) | |||
|
|||
for ssh_client, chan in nsqd_chans: | |||
chan.close() | |||
if hasattr(chan, 'close'): |
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.
odd that this is needed
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.
agreed, missed that change, updated
bench/bench.py
Outdated
help='AMI ID') | ||
tornado.options.define('ssh_key_name', type=str, default='default', | ||
help='SSH key name') | ||
tornado.options.define('instance_type', type=str, default='c3.2xlarge', | ||
tornado.options.define('instance_type', type=str, default='c3.xlarge', |
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.
may I suggest c5.large
(which would also require changing the AMI to an HVM-EBS variant, I think ami-0ac80df6eff0e70b5 would do it, and maybe instance-create would then need a root-ebs-size parameter)
... but this could be updated in a separate PR, I could try that after this is merged
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.
c5.large
is VPC-only, so until we rewrite it to setup an entire VPC (not likely), this is Good Enough ™️
I didn't mean to change this from the original default, I'll update it.
3976eae
to
7c4e954
Compare
replaces #1204
fixes #1202
cc @martingrambow @ploxiln