Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 In AI Agent Arch
    • F5 AI Infrastructure Blueprint
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. ServiceMesh
  3. 正文

Istio 熔断策略及envoy配置

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

Warning: Array to string conversion in /home/wwwroot/myf5/wp-content/plugins/wpjam-basic/public/wpjam-utils.php on line 496

设置如下策略熔断策略

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%左右被熔断

$ 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里

{
"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
},

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

纳米

linjing.io

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

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
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
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    neutron flannel k8s network api openstack irule nginx docker istio DNS F5 gtm bigip envoy
    最近评论
    Abeny 发布于 9 个月前(02月20日) Very good!
    lz 发布于 2 年前(02月26日) 66666666666666
    汤姆 发布于 2 年前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 2 年前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 3 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    浏览次数
    • Downloads - 197,097 views
    • 联系我 - 138,312 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 128,289 views
    • Github - 115,809 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 92,221 views
    • F5常见log日志解释 - 91,072 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 89,786 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 88,379 views
    • 关于本站 - 77,463 views
    • F5利用Elastic stack(ELK)进行应用数据挖掘系列(2)-DNS - 65,334 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

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

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号