5 ms·
Looking forward to when HAProxy support for HTTP/2 lands since they refused to implement SPDY support. Here's a list of common servers support for SPDY/HTTP2:
by anderspetersson 12y ago
Looking forward to when HAProxy support for HTTP/2 lands since they refused to implement SPDY support.
Here's a list of common servers support for SPDY/HTTP2: https://istlsfastyet.com/#server-performance https://istlsfastyet.com/#server-performance
- js4all 12y agoCurrent HAProxy already supports the handshake of SPDY/HTTP2 via NPN and ALPN. You have to route to proper backends. You also need to provide a HTTP/1.1 fallback implementation for incapable clients. Once setup that works very well. I am using it for our blog (https://blog.cloudno.de https://blog.cloudno.de)
- newman314 12y agoMaybe you could share a scrubbed config?
- js4all 12y agoSure, here is a gist: https://gist.github.com/dvbportal/cccccbbf6163cfbbbce6 https://gist.github.com/dvbportal/cccccbbf6163cfbbbce6 The frontend definition advertises spdy and http/1.1 protocols via npn. (this should be now ALPN, HAProxy supports it) The ssl_fc_npn ACL routes to the SSL-teminated traffic to the appropriate backends. Nginx is configured to serve two backends with one port for each protocol. There can be multiple instances with round robin, if necessary. This setup scales and is extensible for additional protocols
- newman314 12y agoThanks! I'll go take a look now.
- jsmeaton 12y agoThanks for sharing. Can the SPDY frontend only be tcp based though, not http? The reason I ask is because my setup does all the routing (path and subdomain based) with http frontends.
- js4all 12y agoUnfortunately, it has to be TCP. You can define other HTTP frontends thought, but then you lose SPDY for that frontend. You can use the routing capabilities of nginx in the backend to break the traffic further down.
- Apofis 12y agoWhat about SSL Termination? Would it still work if I terminate?