当前位置:网站首页>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).
边栏推荐
- The industrial control security of roaming the Intranet
- How to implement SQLSERVER database migration in container
- Wi-Fi 7 来啦,它到底有多强?
- [C language questions -- leetcode 12 questions] take you off and fly into the garbage
- 熬夜整理出的软件测试【高频】面试题大全(2022最新)
- Redis highly available
- 安装ImageMagick7.1库以及php的Imagick扩展
- 刚刚阿里面软件测试回来,3+1面任职阿里P7,年薪28*15薪
- 高速公路服务区智能一体机解决方案
- Firefox browser uses plug-ins to set up proxy
猜你喜欢

【我的OpenGL学习进阶之旅】OpenGL的坐标系的学习笔记

熬夜整理出的软件测试【高频】面试题大全(2022最新)

Most common usage of vim editor

Here comes Wi Fi 7. How strong is it?

MongoDB入門實戰教程:學習總結目錄

Mongodb introductory practical tutorial: learning summary directory

Linux记录-4.22 MySQL5.37安装(补充)

CVPR 2022 - Interpretation of selected papers of meituan technical team

运营商5G用户渗透远远比4G慢,5G的普及还得看中国广电

Linux record -4.22 MySQL 5.37 installation (supplementary)
随机推荐
leetcode 139. Word break word split (medium)
Network engineers must know the network essence knowledge!
Solution of intelligent all in one machine in expressway service area
QTreeWidget作为单例模式以dll返回的两个问题
Ascinema with asciicast2gif for efficient command line terminal recording
The future of robots -- deep space exploration
clang: warning: argument unused during compilation: ‘-no-pie‘ [-Wunused-command-line-argument]
07. Tencent cloud IOT device side learning - Data Template
The catch-up of domestic chips has scared Qualcomm, the leader of mobile phone chips in the United States, and made moves to cope with the competition
MySQL 开发规范
Design of vga/lcd display controller system based on FPGA (Part 2)
Analysis of dompurify
如何轻松实现在线K歌房,与王心凌合唱《山海》
熬夜整理出的软件测试【高频】面试题大全(2022最新)
Crmeb multi merchant system applet authorization problem solving paste
Mongodb Getting started Practical Tutoriel: Learning Summary Table des matières
如何扩展aws主机上的磁盘空间
10 hands-free idea plug-ins. These codes do not need to be written (the second bullet)
Ethical considerations
Typescript raw data type