当前位置:网站首页>Service mesh introduction, istio overview
Service mesh introduction, istio overview
2022-07-08 00:35:00 【Zhang quandan, Foxconn quality inspector】
Service Mesh
Service Mesh The Chinese translation of the Chinese version of “ Service Grid ” , Is a Handle services and communication between services The infrastructure layer of , It is responsible for delivering reliable network requests for building complex cloud native applications , The basic component functions required by microservices are realized for service communication , For example, service discovery 、 Load balancing 、 monitor 、 Traffic management 、 Access control, etc . In practice ,
Service grids are usually implemented as A set of lightweight network agents deployed with Applications , But it's transparent to the application .
Sidecar It refers to an agent deployed with application services , If you visit your app, you have to go proxy To access , Can only go sidecar To communicate , You can't communicate between applications , Because all traffic of the application is proxy Taken over .
The essence of service grid is to take over business processes , Then by your own proxy The agent is responsible for data forwarding .
The blue squares above will have a control heart to uniformly manage the blue squares , For example, a configuration can be sent to it in the control center , Let these proxy To take effect .
You can also do access control , Specify that an application cannot access an application , such proxy Will not forward .
The administrator is only responsible for configuring the center , To configure the control of some traffic in the whole service grid , And a series of these functions .
Service Mesh characteristic
Service Mesh Has the following characteristics :
servicemesh Can be seen as nginx A more advanced mode on the application of the proxy backend , This mode is to increase the control system , These control systems can manage all agents in a unified way , It's not like the agent of traditional monomer applications .
Because the flow goes through sidecar, It took over , Then you can do many functions .
service mesh The goal of design and the principle of realization actually come from proxy, And a control center to manage .
Istio summary
Isito yes Service Mesh The product landing of , Is currently the most popular service grid , Rich in functions 、 High maturity .
Istio Version change
stay Istio1.5 A major change has taken place in the version , Completely overturn the structure of the original control plane , Integrate multiple existing components into Monomer structure “istiod”, At the same time Mixer Components , If you are using a previous version , These changes must be understood .
There were many components before , When deploying, deploy 7,8 A component , But I don't know the relationship between components , How to communicate , Some components may easily hang up .
listio Is based on kubernetes The above service grid governance platform , Early pursuit of purity of architecture , A control surface has many components , Many components are very clear in terms of architecture , The design is very good , Later, I fell into a dilemma , A control surface has many components , When you upgrade your system , This upgrade is in trouble , Which component to upgrade first , Which component to upgrade after , Whether there will be business interruption , This will cause a lot of trouble .
So make a choice , For example, some components are maintained by a team , Then merge , Change some components into one , The risk of such an upgrade is reduced , Lower maintenance costs , There are no absolute principles , It all depends on your business scenario .
After refactoring , The server control panel has istiod, The previous version has 4 A component , Now just one component .
Istio Architecture and components
Istio Service grid is logically divided into data plane and control plane .
- Pilot: Policy configuration component , by Proxy Provide service discovery 、 Intelligent routing 、 Error handling, etc . ( management proxy)
- Citadel: Security components , Provide certificate generation and distribution 、 Encrypted communication 、 Access control .
- Galley: Configuration Management 、 verification 、 distribution .
( It refers to the end of the micro service , It is the end of service deployment , Like deploying a Pod, This belongs to the data plane , He will implant a in the data plane proxy)(proxy Responsible for all microservice network communications , Communication between microservices will take this proxy, Or micro service access to the outside also need to go this proxy, Responsible for forwarding and configuring relevant policies )
You can see that the architecture is clear after the revision , Reduce more costs .
Istio Basic concepts
Istio Yes 4 Resource allocation , Implement all traffic management requirements :( Various functions are implemented according to these configuration resources )
- VirtualService( A virtual service ): Realize the function of service request routing rules .
- DestinationRule( Target rule ): Achieve load balancing of target services 、 Service discovery 、 Fault handling and fault injection functions .
- Gateway( gateway ): Let the services in the service grid , Can be seen all over the world .
- ServiceEntry( Service entrance ) : Allows the management of network traffic for extra services .( Use less )
边栏推荐
- RPA云电脑,让RPA开箱即用算力无限?
- 大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?
- Stm32f1 and stm32cubeide programming example - rotary encoder drive
- tourist的NTT模板
- Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
- 去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
- The standby database has been delayed. Check that the MRP is wait_ for_ Log, apply after restarting MRP_ Log but wait again later_ for_ log
- Zhou Hongqi, 52 ans, est - il encore jeune?
- 22年秋招心得
- [programming problem] [scratch Level 2] 2019.09 make bat Challenge Game
猜你喜欢
DNS series (I): why does the updated DNS record not take effect?
[basis of recommendation system] sampling and construction of positive and negative samples
What if the testing process is not perfect and the development is not active?
取消select的默认样式的向下箭头和设置select默认字样
【测试面试题】页面很卡的原因分析及解决方案
单机高并发模型设计
v-for遍历元素样式失效
Cause analysis and solution of too laggy page of [test interview questions]
Binder核心API
[programming problem] [scratch Level 2] draw ten squares in December 2019
随机推荐
If an exception is thrown in the constructor, the best way is to prevent memory leakage?
They gathered at the 2022 ecug con just for "China's technological power"
韦东山第二期课程内容概要
How to learn a new technology (programming language)
第一讲:链表中环的入口结点
paddle一个由三个卷积层组成的网络完成cifar10数据集的图像分类任务
5G NR 系统消息
3 years of experience, can't you get 20K for the interview and test post? Such a hole?
Reentrantlock fair lock source code Chapter 0
某马旅游网站开发(对servlet的优化)
52歲的周鴻禕,還年輕嗎?
商品的设计等整个生命周期,都可以将其纳入到产业互联网的范畴内
C # generics and performance comparison
攻防演练中沙盘推演的4个阶段
【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
玩转Sonar
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動
Hotel
An error is reported during the process of setting up ADG. Rman-03009 ora-03113
Solution to prompt configure: error: curses library not found when configuring and installing crosstool ng tool