当前位置:网站首页>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 )
边栏推荐
- Vscode software
- 【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
- 【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
- 51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
- 应用实践 | 数仓体系效率全面提升!同程数科基于 Apache Doris 的数据仓库建设
- 动态库基本原理和使用方法,-fPIC 选项的来龙去脉
- Stm32f1 and stm32cubeide programming example - rotary encoder drive
- What has happened from server to cloud hosting?
- 腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
- 从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
猜你喜欢
STM32F1與STM32CubeIDE編程實例-旋轉編碼器驅動
5g NR system messages
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
v-for遍历元素样式失效
玩轉Sonar
某马旅游网站开发(登录注册退出功能的实现)
Qt添加资源文件,为QAction添加图标,建立信号槽函数并实现
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
华为交换机S5735S-L24T4S-QA2无法telnet远程访问
The underlying principles and templates of new and delete
随机推荐
[OBS] the official configuration is use_ GPU_ Priority effect is true
从服务器到云托管,到底经历了什么?
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
redis你到底懂不懂之list
C# 泛型及性能比较
Application practice | the efficiency of the data warehouse system has been comprehensively improved! Data warehouse construction based on Apache Doris in Tongcheng digital Department
去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
手写一个模拟的ReentrantLock
Cause analysis and solution of too laggy page of [test interview questions]
A brief history of information by James Gleick
How to learn a new technology (programming language)
DNS series (I): why does the updated DNS record not take effect?
They gathered at the 2022 ecug con just for "China's technological power"
ABAP ALV LVC模板
52歲的周鴻禕,還年輕嗎?
Binder核心API
[C language] objective questions - knowledge points
SQL knowledge summary 004: Postgres terminal command summary
"An excellent programmer is worth five ordinary programmers", and the gap lies in these seven key points
智慧监管入场,美团等互联网服务平台何去何从