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

The cluster boot benchmark should the num_cpus function in parallel #69

Closed
voellm opened this issue Jan 23, 2015 · 1 comment
Closed

Comments

@voellm
Copy link
Contributor

voellm commented Jan 23, 2015

The cluster boot benchmark has the following code:

for vm in vms:
metadata = {'machine_type': vm.machine_type, 'num_cpus': vm.num_cpus,
'machine_instance': vm_number}
value = vm.TimeToBoot()

This looks great until you realize vm.num_cpus is a method on the virtual machine which in turn calls RemoteCommand leading to an ssh. When large number of VM's boot the result is a long set of serially run ssh's to each VM. This could be done a lot faster by moving the code into a method and then using RunThreaded.

@cmccoy
Copy link
Contributor

cmccoy commented Jan 26, 2015

Closed by #73.

@cmccoy cmccoy closed this as completed Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants