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

Parallelize rock installation #3

Open
mikz opened this issue Nov 3, 2017 · 1 comment
Open

Parallelize rock installation #3

mikz opened this issue Nov 3, 2017 · 1 comment

Comments

@mikz
Copy link
Contributor

mikz commented Nov 3, 2017

Installing rocks is trivially parallelizable. We care only about nginx, so when ngx is available we can start a new thread. But it should be modular enough for adding more backends.

@mikz
Copy link
Contributor Author

mikz commented Nov 10, 2017

Using ngx.thread.spawn does not work because luarocks uses os.execute which is blocking and other threads are not getting scheduled. So it is still serialized.

See #6 for the prototype implementation.

One way to workaround this would be to reimplement fetching data by curl into cosockets.

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