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

Backend request processing has high overhead on macOS #101

Closed
aturon opened this issue Dec 1, 2021 · 2 comments
Closed

Backend request processing has high overhead on macOS #101

aturon opened this issue Dec 1, 2021 · 2 comments

Comments

@aturon
Copy link
Contributor

aturon commented Dec 1, 2021

A simple proxy service that forwards a request upstream adds significant overhead on macOS, but not on Linux.

Can be reproduced by trying:

curl -s http://localhost:7676/ -o /dev/null -w %{time_connect}:%{time_starttransfer}:%{time_total}

against a Viceroy forwarding service, vs the same against the backend URL directly. On Linux, the two reliably produce similar timings, while on macOS the Viceroy service takes 2-3x as long as going directly to the backend.

@aturon
Copy link
Contributor Author

aturon commented Dec 1, 2021

Good news! This actually appears to be fixed by #100. cc @williamoverton

@aturon aturon closed this as completed Dec 1, 2021
@aturon
Copy link
Contributor Author

aturon commented Dec 1, 2021

For posterity: one thing that #100 changes is that we load up certificates once, at the beginning of execution, rather than every time we connect to a backend (which was implicitly happening by allocating a hyper_rustls connection). That, unsurprisingly, was adding quite a bit of overhead.

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

No branches or pull requests

1 participant