当前位置:网站首页>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
边栏推荐
- CIA security model - use PGP to describe privacy and integrity of network security CIA model
- Recommend several super practical data analysis tools
- The 30 pictures bring the network protocol layer by layer to life. It's really fragrant!
- Linux记录-4.22 MySQL5.37安装(补充)
- MySQL 开发规范
- MySQL development specification
- A series of problems caused by IPVS connection reuse in kubernetes
- Bosun query
- Task priority motion planning of floating base
- 股票网上开户及开户流程怎样?网上开户安全么?
猜你喜欢

Most common usage of vim editor

The equipment is connected to the easycvr platform through the national standard gb28181. How to solve the problem of disconnection?
![[C language questions -- leetcode 12 questions] take you off and fly into the garbage](/img/ca/a356a867f3b7ef2814080fb76b9bfb.png)
[C language questions -- leetcode 12 questions] take you off and fly into the garbage

Vim编辑器的最常用的用法

日志记录真没你想的那么简单

The catch-up of domestic chips has scared Qualcomm, the leader of mobile phone chips in the United States, and made moves to cope with the competition

高速公路服务区智能一体机解决方案

60 个神级 VS Code 插件!!

Apple is no match for the longest selling mobile phone made in China, and has finally brought back the face of the domestic mobile phone

Mongodb introductory practical tutorial: learning summary directory
随机推荐
Design of CAN bus controller based on FPGA (Part 2)
Xingxinghai, it is said that the new generation can fight better?
Binary computing
如何扩展aws主机上的磁盘空间
Solution of intelligent all in one machine in expressway service area
Paper: Google TPU
【Kubernetes】1
Teach you how to view version information with mongodb
【C语言刷题——Leetcode12道题】带你起飞,飞进垃圾堆
MySQL replication series 6- tables related to replication information
Chaos mesh in Tencent -- Tencent mutual entertainment chaotic engineering practice
60 个神级 VS Code 插件!!
The future of robots -- deep space exploration
How to use nested tags in thymeleaf3 Tags
Design of vga/lcd display controller system based on FPGA (Part 1)
[log service CLS] initial experience of Tencent cloud CLS log service
Since the household appliance industry has entered the era of stock competition, why does Suning win the first channel for consecutive times?
I just came back from the Ali software test. I worked for Alibaba P7 in 3+1, with an annual salary of 28*15
高速公路服务区智能一体机解决方案
[tke] multiple ingress controllers are used in the cluster