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

Pipelines gets stuck if too many pipelines are in the same process #110

Closed
flosell opened this issue May 14, 2016 · 1 comment
Closed

Pipelines gets stuck if too many pipelines are in the same process #110

flosell opened this issue May 14, 2016 · 1 comment
Labels

Comments

@flosell
Copy link
Owner

flosell commented May 14, 2016

If too too many pipelines are in the same LambdaCD project/process, pipelines just get stuck in the middle of executing or just don't start at all:
screen shot 2016-05-14 at 20 30 00

Example to reproduce: https://gist.github.com/flosell/a8f0adf5f5fe1b3e61fb5c6adf6fbd93

@flosell flosell added the bug label May 14, 2016
@flosell
Copy link
Owner Author

flosell commented May 14, 2016

The root problem seems to be the incorrect use of go-block to execute the children of either: Go-blocks assume that their body is non-blocking and therefore share a thread pool of availableProcessors * 2 + 42 threads. When starting too many pipelines with an either in front, this fills up the thread pool, leaving no room to process events or do any other work, therefore effectively stalling all of LambdaCD.

Solution:

  • spawn normal threads in either
  • remove use of blocking >!! from within go-blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant