AWS ELB/ALB 现在支持 HTTP/2。
根据文档( https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html ):
Application Load Balancers provide native support for HTTP/2 with HTTPS listeners. You can send up to 128 requests in parallel using one HTTP/2 connection. The load balancer converts these to individual HTTP/1.1 requests and distributes them across the healthy targets in the target group.
我的目标是运行 Apache 且支持 HTTP/2 的 EC2 实例。是否可以通过 HTTP/2 将 ALB 连接到目标(EC2 实例)并避免通过 HTTP/1.1 进行 ALB <--> ec2 连接?
我在控制台或文档中没有看到任何方法可以做到这一点。
最佳答案
不,这是不可能的。
ALB 总是将请求转换为 HTTP/1.1,这不是一个可配置的选项。
关于amazon-web-services - AWS ELB/ALB http/2 通过 http/2(不是 http/1.1)传递到 EC2 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53018021/