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

Multi-threaded hostname updates #64

Open
Sharpie opened this issue Apr 14, 2016 · 2 comments
Open

Multi-threaded hostname updates #64

Sharpie opened this issue Apr 14, 2016 · 2 comments

Comments

@Sharpie
Copy link
Member

Sharpie commented Apr 14, 2016

Syncing /etc/hosts in a serial fashion across a dozen computers in remote clouds can take a good amount of time. Since the problem is highly parallel, we should investigate spawning a few worker threads to knock it out faster.

@Sharpie
Copy link
Member Author

Sharpie commented Apr 24, 2016

Looks like Vagrant 1.2.0 introduced a batch method on the Environment class which handles parallel execution of machine actions.

@Sharpie
Copy link
Member Author

Sharpie commented Apr 24, 2016

...and that method refuses to run anything in parallel if the provider backing a machine doesn't opt into it. Since we're just opening a SSH or WinRM connection, we hopefully don't need the same level of guarantees that arbitrary actions require.

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

1 participant