当前位置:网站首页>Istio FAQ: region awareness does not take effect
Istio FAQ: region awareness does not take effect
2022-06-24 15:44:00 【imroc】
This article excerpts from istio Learning notes
summary
Use istio Regional awareness , The test found that it didn't work , This article introduces several common reasons .
DestinationRule Not configured outlierDetection
Region awareness is enabled by default , But you need to configure DestinationRule, And specify outlierDetection It will take effect , The main purpose of specifying this configuration is to make istio perception endpoints Whether it is abnormal , At present locality Of endpoints When an exception occurs failover To other places endpoints.
Configuration example :
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: nginx
spec:
host: nginx
trafficPolicy:
outlierDetection:
consecutive5xxErrors: 3
interval: 30s
baseEjectionTime: 30sclient Not configured service
istio The control plane will issue a separate message for each data plane EDS, Different data plane instances (Envoy) Of locality It may not be the same , Generated EDS It may be different .istio Will get the data plane locality Information , The main way to obtain data is to find the corresponding endpoint Last saved region、zone Etc , If client There is no service, And then there won't be endpoint, The control surface cannot be obtained client Of locality Information , It is impossible to realize regional awareness .
Solution : by client To configure service,selector Choose client Of label. If client It does not provide external services ,service Of ports You can also define a .
Used headless service
If it's a visit headless service, It does not support regional awareness , because istio Would be right headless service Request direct passthrough, No load balancing , The client will directly access dns Resolved pod ip.
Solution : Create another one separately service ( Not headless).
边栏推荐
- Use dictionary
- Wi-Fi 7 来啦,它到底有多强?
- HMM to CRF understanding and learning notes
- The equipment is connected to the easycvr platform through the national standard gb28181. How to solve the problem of disconnection?
- asciinema 搭配 asciicast2gif 实现高效的命令行终端录制能力
- Jenkins 镜像无法更新插件中心的3种解决方法
- How to optimize performance
- How to generate assembly code using clang in Intel syntax- How to generate assembly code with clang in Intel syntax?
- Precautions for using JMeter suite to build a pressure test environment
- Jenkins的便捷式安装
猜你喜欢

刚刚阿里面软件测试回来,3+1面任职阿里P7,年薪28*15薪
![[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

Mysql之Binlog

Jenkins 镜像无法更新插件中心的3种解决方法

推荐几款超级实用的数据分析利器

Linux record -4.22 MySQL 5.37 installation (supplementary)

Vim编辑器的最常用的用法

Solution of intelligent all in one machine in expressway service area

MongoDB入门实战教程:学习总结目录

还在担心漏测吗?快来使用jacoco统计下代码覆盖率
随机推荐
【我的OpenGL学习进阶之旅】OpenGL的坐标系的学习笔记
运营商5G用户渗透远远比4G慢,5G的普及还得看中国广电
Teach you how to view version information with mongodb
Which account of Dongfang fortune is safer and better
CAP:多重注意力机制,有趣的细粒度分类方案 | AAAI 2021
How to efficiently transfer enterprise business data?
为什么企业实施WMS仓储管理系统很容易失败
The first in China! Tencent cloud key management system passes password application verification test
Attacked! Cloud development monitoring alarm practice
Istio Troubleshooting: using istio to reserve ports causes pod startup failure
Es search content top
Differential privacy
熬夜整理出的软件测试【高频】面试题大全(2022最新)
The penetration of 5g users of operators is far slower than that of 4G. The popularity of 5g still depends on China Radio and television
Leetcode 139. Mot break word Split (medium)
VNC Viewer方式的远程连接树莓派
Why is it easy for enterprises to fail in implementing WMS warehouse management system
Use tuples
Remote connection raspberry pie in VNC Viewer Mode
Use dictionary