-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Question] Is there anything that could block the event loop? #1555
Comments
The |
The amount of work done by the PnP runtime was reduced a lot in #1474 but it hasn't been released yet, could you try with the latest changes from master using |
@arcanis I've tested it outside the docker to figure out what could lead to the health check not responding issue. This is my only trace for now. I do agree that this shouldn't have a real impact since it's just a |
As mentioned in #1555 (comment), please try with master. |
thank you @merceyz I will do that and post the results here |
Just to make sure, that was not released with yarn 2.1.1, even though it's on master? |
It was released with 2.1.1 |
Closing this as the answer to the question is: yes, but it shouldn't do it as much anymore. If you're able to provide a repro with the latest version of Yarn that shows a slowdown I can profile it and see if there is something that can be optimized. |
Hi,
First of all, I'd like to say that I really like the new yarn :)
Since I started using it I experienced one issue that might be related to the upgrade. I'm serving static files using the Hapi.js server. There is nothing fancy there, I'm requiring things like
path
,zlib
,fs
(to read one file synchronously at the beginning of the file),@hapi/hapi
,@hapi/inert
.I'm deploying to the k8s cluster and I noticed that sometimes the container is crashing a couple of times before it actually starts. After spending some time I discovered that it's because of the health check issue. In logs there is nothing, everything looks normal. One of the potential reasons could be that the HTTP server starts immediately and then later there is something that can lock the event loop for some time causing some delays on health check response.
I was able to debug it a little bit by using node
--trace-sync-io
flag. I've got something like this:I'm getting this multiple times almost every time when the server serves a static file through the browser. I don't know if this could cause the issue, so that is why I decided to create this ticket.
Is there something that could block the event loop on runtime?
The text was updated successfully, but these errors were encountered: