-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[proxy] Replace nginx with Caddy #3964
Conversation
34ea1b2
to
05c5763
Compare
/werft run 👍 started the job as gitpod-build-aledbf-proxy2caddy.27 |
52bcadd
to
139e88f
Compare
/werft run 👍 started the job as gitpod-build-aledbf-proxy2caddy.55 |
5a54824
to
57106ea
Compare
There is an issue in Go related to http/2 golang/go#42534 (comment) |
I see, wonder whether it can affect end users? e.g. if one tests an app loading time on a port location then he can get wrong impression because of disabled http2, i.e. resources will be loaded one after another, not parallel? or it does not affect them? |
Maybe? I can perceive a difference only opening something like vscode (~2000 request every time)
There is a default of 6 parallel downloads. This is really old but the values are similar https://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/ |
/werft run 👍 started the job as gitpod-build-aledbf-proxy2caddy.142 |
Hm. I'd really love to see us move away from nginx. But it'd would also nice to not have to compromise. @aledbf Would it make sense to wait just a little longer and check if either: Personally I'm inclined to wait: As nice as a switch would be it's not blocking us AFAIK, and the nginx |
Agree.
I tried the proposed fix without success.
Yes, I agree with that. That is why this PR is still a draft. Edit: after all these comments, I updated the PR with a fix that seems to work 🙃 |
@akosyakov please try again |
22a14d8
to
e9b76ba
Compare
e9b76ba
to
8e56e65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works fast and stable for my use cases, but i did not check code
@aledbf one thing which seems to be wrong it is how long does it take to download global.css with new PR in our website on slow 3g connection without caching again the prod. It is still slow compare to prod with recent changes. |
FROM openresty/openresty:1.19.3.1-3-alpine | ||
|
||
ENV TRIGGER_REBUILD 1 | ||
FROM aledbf/caddy-http2:0.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we build this caddy image as part of the Gitpod repo, or is this a fork of caddy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This image is a fork of Caddy with the updated packages aledbf/caddy@68fbb8e
I can do the same thing in the gitpod org, forking caddy and adding the commit, or maintain the code in my fork until the fix land in Caddy.
8e56e65
to
d98dc05
Compare
/werft run 👍 started the job as gitpod-build-aledbf-proxy2caddy.155 |
Changes:
TODO:
- make minio and docker-registry optional- Private workspace portsfixes #3611