当前位置:网站首页>In-depth understanding of timeout settings for Istio traffic management
In-depth understanding of timeout settings for Istio traffic management
2022-08-05 10:17: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 边栏推荐
猜你喜欢

High-quality DeFi application building guide to help developers enjoy DeFi Summer

19. Server-side session technology Session

哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?

Open Source Summer | How OpenHarmony Query Device Type (eTS)

PCB布局必知必会:教你正确地布设运算放大器的电路板

一文道清什么是SPL

教你本地编译运行一个IDEA插件,在IDEA里聊天、下棋、斗地主!

Complete image segmentation efficiently based on MindSpore and realize Dice!

Pycharm 常用外部工具

MySQL transactions
随机推荐
E-sports, convenience, efficiency, security, key words for OriginOS functions
气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)
js hijacks the array push method
2022 Huashu Cup Mathematical Modeling Ideas Analysis and Exchange
Oracle 19.3 restart 环境
Imitation SBUS fixed with serial data conversion
开发常用手册链接分享
QSS 选择器
2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
The difference between find, matches, lookingAt matching strings in matcher
three.js调试工具dat.gui使用
阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
Oracle temporary table space role
上位机开发C#语言:模拟STC串口助手接收单片机发送数据
uniapp 连接ibeacon
three objects are arranged in a spherical shape around the circumference
Complete image segmentation efficiently based on MindSpore and realize Dice!
How can project cost control help project success?
5. Deploy the web project to the cloud server
mysql索引