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

Set --create_and_boot_post_delay to 2 seconds by default. #2910

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Set --create_and_boot_post_delay to 2 seconds by default.

EC2 seems to have a race condition when adding VMs to a clustered placement group.
If you call aws ec2 run-instances in parallel adding multiple VMs to a clustered placement group, it incorrectly claims:

The perfkit-db9d2a668-731b3c6e8f4b Placement Group has already been used in another Availability Zone. Specify the correct Availability Zone and try again.

Sleep two seconds to boot this.

If you want to measure how fast a cloud can boot many VMs without this sleep, use the large_scale_boot benchmark, which does not use clustered placement groups and uses a single run_instances command on AWS.

If you would like to repro the race condition run:

./pkb.py --benchmarks=cluster_boot --cloud=AWS --num_vms=20 --create_and_boot_post_task_delay=0

EC2 seems to have a race condition when adding VMs to a clustered placement group.
If you call `aws ec2 run-instances` in parallel adding multiple VMs to a clustered placement group, it incorrectly claims:
```
The perfkit-db9d2a668-731b3c6e8f4b Placement Group has already been used in another Availability Zone. Specify the correct Availability Zone and try again.
```

Sleep two seconds to boot this.

If you want to measure how fast a cloud can boot many VMs without this sleep, use the large_scale_boot benchmark, which does not use clustered placement groups and uses a single run_instances command on AWS.

If you would like to repro the race condition run:
```
./pkb.py --benchmarks=cluster_boot --cloud=AWS --num_vms=20 --create_and_boot_post_task_delay=0
```

PiperOrigin-RevId: 372371889
@google-cla google-cla bot added the cla: yes label May 6, 2021
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.

1 participant