当前位置:网站首页>深入理解 Istio 流量管理的超时时间设置
深入理解 Istio 流量管理的超时时间设置
2022-08-05 10:09:00 【InfoQ】
环境准备
httpbinkubectl apply -f samples/httpbin/httpbin.yamlsleepkubectl apply -f samples/sleep/sleep.yaml httpbinsleep设置超时时间
sleephttpbinexport SLEEP_POD=$(kubectl get pods -l app=sleep -o 'jsonpath={.items[0].metadata.name}')
kubectl exec "$SLEEP_POD" -c sleep -- time curl -o /dev/null -sS -w "%{http_code}\n" http://httpbin.org/delay/5200
real 0m 5.69s
user 0m 0.00s
sys 0m 0.00shttpbinkubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- httpbin
http:
- route:
- destination:
host: httpbin
timeout: 3s
EOF504
real 0m 3.01s
user 0m 0.00s
sys 0m 0.00shttpbin查看Envoy日志
sleepkubectl logs -l app=sleep -c istio-proxysleephttpbin{
"authority": "httpbin:8000",
"bytes_received": 0,
"bytes_sent": 24,
"connection_termination_details": null,
"downstream_local_address": "172.24.146.239:8000",
"downstream_remote_address": "172.24.158.25:40384",
"duration": 3001,
"method": "GET",
"path": "/delay/5",
"protocol": "HTTP/1.1",
"request_id": "5ef38816-7f49-48c8-9627-2416e1716293",
"requested_server_name": null,
"response_code": 504,
"response_code_details": "upstream_response_timeout",
"response_flags": "UT",
"route_name": null,
"start_time": "2022-07-01T09:40:13.882Z",
"upstream_cluster": "outbound|8000||httpbin.onemore.svc.cluster.local",
"upstream_host": "172.24.158.96:80",
"upstream_local_address": "172.24.158.25:32846",
"upstream_service_time": null,
"upstream_transport_failure_reason": null,
"user_agent": "curl/7.81.0-DEV",
"x_forwarded_for": null
}response_flagsUTsleephttpbinhttpbinkubectl logs -l app=httpbin -c istio-proxyhttpbinsleep{
"authority": "httpbin:8000",
"bytes_received": 0,
"bytes_sent": 0,
"connection_termination_details": null,
"downstream_local_address": "172.24.158.96:80",
"downstream_remote_address": "172.24.158.25:32846",
"duration": 2997,
"method": "GET",
"path": "/delay/5",
"protocol": "HTTP/1.1",
"request_id": "5ef38816-7f49-48c8-9627-2416e1716293",
"requested_server_name": "outbound_.8000_._.httpbin.onemore.svc.cluster.local",
"response_code": 0,
"response_code_details": "downstream_remote_disconnect",
"response_flags": "DC",
"route_name": "default",
"start_time": "2022-07-01T09:40:13.885Z",
"upstream_cluster": "inbound|80||",
"upstream_host": "172.24.158.96:80",
"upstream_local_address": "127.0.0.6:35701",
"upstream_service_time": null,
"upstream_transport_failure_reason": null,
"user_agent": "curl/7.81.0-DEV",
"x_forwarded_for": null
}response_flagsDCsleep深入分析
httpbin
httpbin
httpbinsleep清理
kubectl delete virtualservice httpbin
kubectl delete -f samples/httpbin/httpbin.yaml
kubectl delete -f samples/sleep/sleep.yaml 边栏推荐
- three.js调试工具dat.gui使用
- QSS 选择器
- LeetCode 216. Combined Sum III (2022.08.04)
- Technical dry goods | Hausdorff distance for image segmentation based on MindSpore
- E-sports, convenience, efficiency, security, key words for OriginOS functions
- ffmpeg drawtext add text watermark
- 阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
- How does the official account operate and maintain?Public account operation and maintenance professional team
- 第九章:activit内置用户组设计与组任务分配和IdentityService接口的使用
- 【AGC】增长服务1-远程配置示例
猜你喜欢

Pytorch深度学习快速入门教程 -- 土堆教程笔记(三)

电竞、便捷、高效、安全,盘点OriginOS功能的关键词

Seata source code analysis: initialization process of TM RM client

Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?

Technical dry goods | Hausdorff distance for image segmentation based on MindSpore

入门 Polkadot 平行链开发,看这一篇就够了

dotnet OpenXML parsing PPT charts Getting started with area charts

自定义过滤器和拦截器实现ThreadLocal线程封闭

leetcode: 529. 扫雷游戏

three物体围绕一周呈球形排列
随机推荐
正则表达式replaceAll()方法具有什么功能呢?
华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)
IDEA执行Test操作导致数据插入时出现了重复数据
一文道清什么是SPL
Microservice Technology Stack
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
基于MindSpore高效完成图像分割,实现Dice!
three.js debugging tool dat.gui use
The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
mysql进阶(二十七)数据库索引原理
第八章:activiti多用户任务分配
Our Web3 Entrepreneurship Project, Yellow
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
韦东山 数码相框 项目学习(六)tslib的移植
MySQL data view
静态链接和动态链接
MySQL之数据视图
机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
static linking and dynamic linking
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods