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

Improvements when things go wrong #290

Merged
merged 2 commits into from
Mar 5, 2021
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 4, 2021

Investigating improvements that could be related to the increase in CHP load on mybinder.org which is currently seeing an increase in routes to stopped endpoints. These are currently giving mostly EHOSTUNREACH, and unhandled ERR_STREAM_WRITE_AFTER_END tracebacks, specifically in this request to the upstream error-target provider (jupyterhub).

  • avoid write-after-end by checking res.writableEnded (thanks @betatim).
    This is new in node 12.9, but the falsy behavior when this is undefined for old nodes should be fine, as it will just behave the same as it does now.
  • More cases when we don't need to log a traceback for socket issues (EHOSTUNREACH, ETIMEDOUT)

minrk added 2 commits March 4, 2021 12:26
this logs a shorter message with just the error code
instead of the traceback
new in 12.9, but falsy undefined should be harmless for old nodes,
they just won't get the improved behavior
@minrk minrk requested a review from betatim March 4, 2021 13:09
@betatim betatim merged commit 2eb96aa into jupyterhub:master Mar 5, 2021
@minrk minrk deleted the writable-ended branch March 5, 2021 10:06
@minrk minrk added the bug label Mar 5, 2021
@meeseeksmachine
Copy link

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/improved-chp-health-endpoint/9315/2

@meeseeksmachine
Copy link

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/improved-chp-health-endpoint/9315/4

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

Successfully merging this pull request may close these issues.

3 participants