【发布时间】:2017-10-13 20:23:59
【问题描述】:
我使用两种类型的负载平衡器:用于前端的 HTTP LB 和作为内部 LB 的网络负载平衡器。我注意到 GCP 的网络负载平衡器(L4 负载平衡器)将 HTTP 版本从 1.1 更改为 1.0。这是我的理解正确吗?如何更改网络 LB 的行为。我觉得换个版本不好。
我的环境
User --> HTTP LB --> Server A --> Network LB --> Server B
服务器 A 的日志
1xx.xxx.xxx.xxx - - [15/May/2017:15:04:41 +0900] "GET /items HTTP/1.1" 200 260 "-" "-"
服务器 B 的日志
1xx.xxx.xxx.xxx - - [15/May/2017:15:04:41 +0900] "GET /items HTTP/1.0" 200 260 "-" "-"
更新 1
这可能不是 GCP LB 的行为。我怀疑 nginx 代理设置。
我将以下设置放入 nginx conf。但是还是不行。
proxy_http_version 1.1;
【问题讨论】:
标签: nginx google-cloud-platform