当前位置:网站首页>Why learn service grid istio
Why learn service grid istio
2022-07-25 19:20:00 【Zhang quandan, Foxconn quality inspector】
Istio Is running on the kubernetes A service grid on (Service Mesh, Third generation microservice Architecture ), Greatly expanded kubernetes The function of , It can be easily achieved than kubernetes Flow management with finer granularity .
When we are directly in kubernetes When deploying an application , Sometimes it is difficult to realize some special needs , Like the Canary release ( Also known as grayscale publishing ).
Canary publishing works like this , We already have an old version of the application here called v1, Then we will release a new version of the application, which is called v2. But now I don't want all clients to access v2, I just want to open some clients for testing in a small range .
So we can set 90% Traffic forwarded to v1,10% Traffic forwarded to v2. If this 10% User feedback v2 Not bad , Then we can expand our visit v2 Of traffic , Narrow access v1 Of traffic .

And so on , Until all the traffic is gradually transferred to v2 above .
without istio The way of implementation is like this , Create two deployment, One is v1 One v2. They created pod Have the same label for service relation . First v1 Set up 3 Copies ,v2 Set up a copy , such 75% All traffic is forwarded to v1 Yes ,25% Traffic forwarded to v2 On .
Then we can shrink v1 Number of copies , increase v2 To modify the flow direction , Here's the picture .

But the flow control is too rough , And it is too troublesome to maintain .
But we are istio It is very convenient to realize . The following is taken from a VirtualService( Referred to as vs) Part of the code in , We changed it weight You can modify the flow direction .
- destination:
host: svc1
subset: v1
weight: 65
- destination:
host: svc1
subset: v2
weight: 35Here is designated to pod1 Of traffic 65%, Go to pod2 Of traffic 35%, Then look at the flow direction through the figure below .

And then we modify it again weight.
- destination:
host: svc1
subset: v1
weight: 35
- destination:
host: svc1
subset: v2
weight: 65Set here to pod1 go 35% Of traffic , Go to pod2 go 65% Of traffic , And then look at the picture below .

We just need to change the weight You can easily forward to pod Of traffic . In addition to the Canary release above , We want to achieve blue-green deployment 、A/B test 、 Conversation retention 、 Traffic mirroring and other functions can be easily realized , therefore istio Its strength lies in its traffic management .
If we want different clients (Android、windows、firefox、chrome etc. ) Visit different pod On ,istio It can also be easily realized . in addition istio It also provides strong observability , Because we installed kiali, You can also easily see the flow direction .
istio It also provides us with more powerful security management , Including passage AuthorizationPolicy Do more detailed authorization management 、pod Between mTLS Certification, etc , Greatly improved pod The security of .
With the advancement of open source and cloud computing , As the core technology, cloud native microservices have maintained rapid growth ; With the maturity of microservice Technology , Began to penetrate all walks of life . On the one hand, labor costs are rising , It is imperative to adopt micro services to improve R & D efficiency .
边栏推荐
- leetcode刷题:动态规划07(不同的二叉搜索树)
- Actual combat of MySQL database design project of online mall system
- 哪吒 D1-H 测试 microbench
- Basic mode of music theory
- 二叉树可视化
- How many lines of code is appropriate for a function? Clean Code
- Cross Site Request Forgery in PHP
- Flutter 小技巧之优化你使用的 BuildContext
- Imperial cms7.5 imitation "question and answer library" question and answer learning platform website source code with mobile version
- Youth, oh, youth
猜你喜欢

哪吒 D1-H 测试 microbench

Wechat campus maintenance and repair applet graduation design finished product of applet completion work (4) opening report

微信小程序 26 播放音乐页的完善②

MES管理系统有什么应用价值

高并发下如何保证数据库和缓存双写一致性?

iMeta | Sangerbox: 交互式整合临床生信分析平台

With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development

SQL Server 2019 安装教程

【919. 完全二叉树插入器】

Pymoo学习 (5):收敛性分析
随机推荐
How to design product help center? The following points cannot be ignored
Talk about 15 tips of SQL optimization
The bank's wealth management subsidiary accumulates power to distribute a shares; The rectification of cash management financial products was accelerated
Wechat campus maintenance and repair applet graduation design finished product (5) assignment of applet completion work
With 8 years of product experience, I have summarized these practical experience of continuous and efficient research and development
How to analyze qiime2 after obtaining picrust2 results
The degree of interval of basic music theory
Fearless of high temperature and rainstorm, how can Youfu network protect you from worry?
Wechat campus maintenance and repair applet graduation design finished product (7) Interim inspection report
In the first half of the year, the shipment volume has exceeded that of the whole year of last year, and centritec millimeter wave radar has "captured" the international giant
【小程序开发】常用组件及基本使用详解
[open source project] stm32c8t6 + ADC signal acquisition + OLED waveform display
Cross Site Request Forgery in PHP
小程序毕设作品之微信校园维修报修小程序毕业设计成品(3)后台功能
阿里云免费SSL证书申请详细流程
聚智云算,向新而生| 有孚网络“专有云”开启新纪元
Gan, why ".Length! == 3??
C 调的满级和玄
小程序毕设作品之微信校园维修报修小程序毕业设计成品(8)毕业设计论文模板
Real estate enterprises have launched a "war of guarantee"