当前位置:网站首页>Istio FAQ: return 426 status code
Istio FAQ: return 426 status code
2022-06-24 15:46:00 【imroc】
This article excerpts from istio Learning notes
background
Istio Use Envoy Forward as data face HTTP request , and Envoy The default requirement is to use HTTP/1.1 or HTTP/2, When the client uses HTTP/1.0 Will return to 426 Upgrade Required.
common nginx scene
If you use nginx Conduct proxy_pass Reverse proxy , Default will use HTTP/1.0, You can display the specified proxy_http_version by 1.1:
upstream http_backend {
server 127.0.0.1:8080;
keepalive 16;
}
server {
...
location /http/ {
proxy_pass http://http_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
...
}
}Pressure test scenario
ab During pressure measurement, it will send HTTP/1.0 Request ,Envoy Fixed return 426 Upgrade Required, No forwarding at all , Therefore, the pressure measurement results will not be accurate . It can be replaced with other pressure measuring tools , Such as wrk .
Give Way istio Support HTTP/1.0
There are some SDK Or the framework may use HTTP/1.0 agreement , For example, use HTTP/1.0 Go to the resource center / Configuration center Pull configuration information , Let the service run in... Without changing the code istio On , You can also modify istiod To configure , add PILOT_HTTP10: 1 Environment variable to enable HTTP/1.0.
Reference material
边栏推荐
- 使用阿里云RDS for SQL Server性能洞察优化数据库负载-初识性能洞察
- How to expand disk space on AWS host
- Efficient tools commonly used by individuals
- New de debugging
- MySQL replication series 6- tables related to replication information
- MySQL development specification
- Is it safe to open an account for flush stock on mobile phone!
- Three solutions for Jenkins image failing to update plug-in Center
- 【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆
- How to generate assembly code using clang in Intel syntax- How to generate assembly code with clang in Intel syntax?
猜你喜欢

The penetration of 5g users of operators is far slower than that of 4G. The popularity of 5g still depends on China Radio and television

Solution of intelligent all in one machine in expressway service area

VNC Viewer方式的远程连接树莓派

推荐几款超级实用的数据分析利器

Wi-Fi 7 来啦,它到底有多强?

【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆

Mysql之Binlog

国产芯片的赶超,让美国手机芯片龙头高通害怕了,出招应对竞争

为什么企业实施WMS仓储管理系统很容易失败

Why is it easy for enterprises to fail in implementing WMS warehouse management system
随机推荐
Linux record -4.22 MySQL 5.37 installation (supplementary)
Working with collections
practice
如何实现容器内的SqlServer的数据库迁移
Motion planning of floating base robot
60 个神级 VS Code 插件!!
"Industry outlook" analysis of five major trends in China's security video surveillance industry
Firefox browser uses plug-ins to set up proxy
Vim编辑器的最常用的用法
Design of vga/lcd display controller system based on FPGA (Part 1)
VNC Viewer方式的远程连接树莓派
在Gradle 中对Junit5 测试框架引用
【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆
How about stock online account opening and account opening process? Is it safe to open an account online?
Fine! Huawei firewall dual computer hot standby Technology: HRP, vgmp, VRRP
Teach you how to deploy the pressure test engine on Tencent cloud
How to modify the login user name of easynvr video monitoring system?
clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]
Arrays API
MySQL toolset: the official performance testing tool mysqlslap