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

Ability to create multiple VMs in parallel #10

Open
jay7x opened this issue Apr 10, 2023 · 1 comment
Open

Ability to create multiple VMs in parallel #10

jay7x opened this issue Apr 10, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jay7x
Copy link
Owner

jay7x commented Apr 10, 2023

While starting multiple VMs in parallel is unsafe in general (see lima-vm/lima#1354) it'd be really nice to have a way to 🤞🏻, 🙏🏻 and do it anyway. As long as all VMs are created already it should be safe to start them in parallel. So my idea is to add a parallel=true kind of parameter to the lima::cluster::start plan.

@jay7x jay7x added enhancement New feature or request good first issue Good for newcomers labels Apr 10, 2023
@jay7x
Copy link
Owner Author

jay7x commented Apr 10, 2023

Just realized that start process is already parallelized.. So two possible things to implement:

  1. Add threads=N parameter to specify how many VMs to start in parallel (fallback to half of CPU count as it is now)
  2. Add parallel=true which will create VMs in parallel too (if you're sure that all files were downloaded before)

@jay7x jay7x changed the title Ability to start multiple VMs in parallel Ability to create multiple VMs in parallel Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant