简体   繁体   中英

AWS ELB/ALB http/2 pass thru to EC2 instance via http/2 (not http/1.1)

AWS ELB/ALB now supports HTTP/2.

According to the documentation ( 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.

My target is an EC2 instance running Apache with HTTP/2 support. Is it possible to have the ALB connect to the target (EC2 instance) via HTTP/2 and avoid having ALB <--> ec2 connections be via HTTP/1.1?

I did not see any way to do this in the console or documentation.

No, this isn't possible.

ALB always converts the requests to HTTP/1.1 and this is not a configurable option.

Yes, it is possible, configure the target group to use http2 in the basic config section as shown below. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM