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

*: update and fix benchmark script #1264

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

mreiferson
Copy link
Member

@mreiferson mreiferson commented Jun 14, 2020

replaces #1204
fixes #1202

cc @martingrambow @ploxiln

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'):
Copy link
Member

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

Copy link
Member Author

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',
Copy link
Member

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

Copy link
Member Author

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.

@mreiferson mreiferson force-pushed the fix-benchmark-script branch from 3976eae to 7c4e954 Compare June 16, 2020 15:12
@mreiferson mreiferson merged commit c9001fc into nsqio:master Jun 16, 2020
@mreiferson mreiferson deleted the fix-benchmark-script branch June 16, 2020 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nsqd: ec2 benchmark is broken
3 participants