Cloud Native应用交付
  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
☁️We are in new App Mesh era: imesh.club ☁️
  1. 首页
  2. ServiceMesh
  3. 正文

Istio 熔断策略及envoy配置

2020年06月23日 1232点热度 0人点赞 0条评论

设置如下策略熔断策略

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
  creationTimestamp: "2020-06-22T03:11:20Z"
  generation: 4
  name: productpage
  namespace: istio-bookinfo
spec:
  host: productpage
  subsets:
  - labels:
      version: v1
    name: v1
  trafficPolicy:
    connectionPool:
      http:
        http1MaxPendingRequests: 1
        maxRequestsPerConnection: 1
      tcp:
        maxConnections: 1
    outlierDetection:
      baseEjectionTime: 3m
      consecutiveErrors: 1
      interval: 1s
      maxEjectionPercent: 100

测试结果显示大约38%左右被熔断

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ siege -c 3 -b http://istiobookinfo.lab.f5se.io/productpage
^C
{ "transactions":           98,
"availability":        38.13,
"elapsed_time":        25.20,
"data_transferred":         4.98,
"response_time":         0.76,
"transaction_rate":         3.89,
"throughput":         0.20,
"concurrency":         2.97,
"successful_transactions":           98,
"failed_transactions":          159,
"longest_transaction":         6.17,
"shortest_transaction":         0.01
}

envoy上的配置,熔断是在cluster里

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"version_info": "2020-06-23T02:35:43Z/123",
"cluster": {
"@type": "type.googleapis.com/envoy.api.v2.Cluster",
"name": "outbound|9080||productpage.istio-bookinfo.svc.cluster.local",
"type": "EDS",
"eds_cluster_config": {
"eds_config": {
"ads": {}
},
"service_name": "outbound|9080||productpage.istio-bookinfo.svc.cluster.local"
},
"connect_timeout": "10s",
"max_requests_per_connection": 1,
"circuit_breakers": {
"thresholds": [
{
"max_connections": 1,
"max_pending_requests": 1,
"max_requests": 4294967295,
"max_retries": 4294967295
}
]
},
"outlier_detection": {
"interval": "1s",
"base_ejection_time": "180s",
"max_ejection_percent": 100,
"enforcing_consecutive_5xx": 0,
"consecutive_gateway_failure": 1,
"enforcing_consecutive_gateway_failure": 100
},

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: circuit break envoy istio 熔断
最后更新:2020年06月23日

纳米

http://linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

取消回复

纳米

http://linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 分类目录
    • Avi Networks (3)
    • Cisco ACI (1)
    • CISCO资源 (21)
    • F5 with ELK (8)
    • F5-Tech tips (38)
    • F5技术 (203)
    • Juniper (4)
    • Linux (7)
    • Nginx (18)
    • SDN (4)
    • ServiceMesh (19)
    • WEB编程 (8)
    • WINDOWS相关 (7)
    • 业界文章 (18)
    • 交换机技术 (20)
    • 化云为雨/Openstack (35)
    • 协议原理 (52)
    • 容器/k8s (64)
    • 我的工作 (19)
    • 我的生活 (70)
    • 网站技术 (19)
    • 路由器技术 (80)
    • 项目案例 (28)
    文章归档
    标签聚合
    F5 k8s openstack nginx istio DNS envoy gtm docker network flannel api irule bigip neutron cc kubernetes ELK vxlan BGP dhcp VPN IPSec lbaas ingress ingress controller nginx plus sidecar IPSec VPN NAT sql
    最新 热点 随机
    最新 热点 随机
    Say hello for 2021 二进制flannel部署,非cni网络模式下与k8s CIS结合方案 又是一年国庆 Service Account Token Volume Projection Istio ingressgateway 静态TLS证书加载与SDS发现方式配置区别 Istio里Gateway的port定义与实际ingressgateway的listener端口关系及规则 Helm 3 部署NGINX Ingress Controller 应用交付老兵眼中的Envoy, 云原生时代下的思考 Istio sidecar iptables以及流量控制分析 Istio 熔断策略及envoy配置
    Say hello for 2021
    Mirror Your Browser Request [原创]多域下Firepass用户认证及资源映射 Docker学习备忘2 [原创]BSCI第三章实验之任务一,二(人邮自学指南BSCI) NGINX Plus 增强模块-命令-参数 一个关于IOS软件引起的SPT 端口问题 F5 virtual edition installation notes 美女哦~ 关于F5上一些版本下对各种traceroute包的处理行为 istio envoy sidecar 无策略时 listener配置
    链接表
    • Jimmy Song‘s Blog
    • SDNap
    • SDNlab
    • SDN论坛
    • Service Mesh社区
    • 三斗室
    • 个人profile

    COPYRIGHT © 2020 Cloud Native应用交付. ALL RIGHTS RESERVED.

    THEME KRATOS MADE BY VTROIS

    京ICP备14048088号-1

    京公网安备 11010502041506号

    [ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin