当前位置:网站首页>Microservice stability guarantee
Microservice stability guarantee
2022-06-28 12:48:00 【51CTO】
Microservice transformation , The biggest challenge is the stability guarantee after the split , The link is complex after splitting 、 Many fault points , A systematic stability guarantee mechanism is required .
- The goal of stability guarantee
Microservice stability assurance needs to be carried out before 、 Consider all aspects during and after the event . Microservices architecture , Applications 、 dependent service 、 The Internet 、 Hardware, etc. may fail , The specific objectives of stability design and support are as follows .
Failure prevention , Minimize the occurrence of faults , The vast majority of stability problems and stability failures have certain incentives , And generally, the fault will occur only when a variety of interception means fail , If we develop complete stability guarantee measures before the failure occurs , It can minimize the occurrence of stability failure .
Fast fault location , There is no business without failure , The key is to be able to quickly find the fault when it breaks down , Only in time , In order to take corresponding solutions in the shortest time .
Fault quick stop , Business stop loss shall be carried out immediately after failure , Restore the normal operation of the business , The deep-seated specific causes of the fault can be analyzed and solved after the event .
- Stability guaranteed 6 Dimensions
There are many system failure points , Stability guarantee is the process of managing failure points . The whole stability design and guarantee can be divided into the following isolation from the perspective of fault point management 、 redundancy 、 Disaster tolerance 、 Change management 、 Time related fault management is friendly to operation and maintenance 6 Dimensions .
- Isolation
The first principle of stability design is “ Isolation ”, Through various isolation mechanisms , Isolate the failure point before the core service , Ensure the availability of core services .
The guiding principle of the isolation mechanism is to change and not change 、 Distinguish between important and unimportant , Change is the main source of stability failure , Separate the changeable parts from the core services and core processes , Reduce core changes , It can guarantee the stability of the core system . A major means of isolation mechanism is decoupling , Core services and non core services can be separated by decoupling , When core services access non core services , By fusing 、 Timeout and retry mechanisms , Ensure that the non core service failure will not affect the overall stability to the greatest extent .
- redundancy
Through service levels 、 Machine level 、 Cluster level 、 Redundancy of multiple dimensions such as machine room level , We can guarantee that : Even if the core services go wrong , You can also use the corresponding traffic switching strategy , Switch traffic to redundant nodes , Ensure that the business is not affected .
In order to avoid redundancy failure at the same time , Redundant replicas need to be independent of each other , Completely equivalent , Can't depend on each other , The replicas in the computer room are deployed across switches ( At this time, it is generally possible to cross cabinets ), If there is redundancy in multiple machine rooms , Each machine room is independent , There can be no identical dependencies .
- Disaster tolerance
The third principle of stability design is “ Disaster tolerance ”, By building a multi-dimensional disaster tolerance system , Ensure that the system faces abnormal input , It can still improve the stable output capacity .
Services can be degraded and throttled , Reduce the impact of sudden large traffic on the system , Ensure the stable output of the system , To ensure the immediacy of degradation and current limiting operation , The system needs to support dynamic modification and validation of configuration .
- Change management
Most stability failures are caused by changes , If the system has not changed for a long time , There are few stability problems , Therefore, the key to ensuring service stability is to strictly control change , Ensure change quality .
For changes , Complete change specifications need to be developed , Changes shall be made in strict accordance with the specifications , No matter how small a change is, it may cause stability problems , Therefore, we must strengthen the awareness of stability when changing , Each step of the change operation shall be subject to various monitoring items , If there is a problem, roll back immediately .
- Time related fault management
When the service is not changed , There is a kind of fault that seldom occurs and is difficult to find , It changes with time ID Out of bounds and overflow , This kind of fault is difficult to find during normal test , And when it happens, it will have a great impact on the whole system .
- Friendly operation and maintenance
In order to realize the operation and maintenance friendly system design , The system needs to monitor all relevant information involved in fault analysis and location , Build a perfect monitoring closed loop , For the system layer 、 Service layer 、 The interface layer 、 The business layer and other dimensions conduct monitoring, collection and alarm . In order to reduce the hidden trouble of system stability , Try to follow simple design principles in microservice architecture design , Starting from the real needs of the business , Avoid tall technical solutions that are purely technical , If not the core function of the business , If necessary, some compromises and cuts can be made , Try to keep the system simple and concise .
边栏推荐
- Unity releases webgl and wakes up keyboard input on the mobile terminal inputfield
- ASP. NET CORE Study11
- [unity Editor Extension practice], find all prefabrications through code
- 杰理之wif 干扰蓝牙【篇】
- k3s一键安装脚本
- 【附源码+代码注释】误差状态卡尔曼滤波(error-state Kalman Filter),扩展卡尔曼滤波,实现GPS+IMU融合,EKF ESKF GPS+IMU
- What is the difference between internal oscillator, passive crystal oscillator and active crystal oscillator?
- Unity Editor Extension Foundation, guilayout
- Given two points and a point with a middle scale, find the coordinates of the point
- Summary of 2022 China Merchants fintech competition
猜你喜欢

Beginner level of attack and defense World Hello_ pwn

Enterprise source code confidentiality scheme sharing

几百行代码实现一个 JSON 解析器

Given two points and a point with a middle scale, find the coordinates of the point

一款自动生成单元测试的 IDEA 插件,开发效率提升 70% 以上!

Hundreds of lines of code to implement a JSON parser

Tips for using ugui (V) using scroll rect component

Login interface accesses and clears the token

Unity Editor Extension Foundation, editorguilayout (III)

Wi-Fi 7 来啦,它到底有多强?
随机推荐
10万美元AI竞赛:寻找大模型做得“更烂”的任务
模板_大整数乘法
[unity Editor Extension practice] dynamically generate UI code using TXT template
Truly understand triode beginner level chapter (Classic) "suggestions collection"
.NET混合开发解决方案24 WebView2对比CefSharp的超强优势
FineReport安装教程
Login interface accesses and clears the token
arcgis pro 可以实现直连postgresql,编辑图层要素吗
Here comes Wi Fi 7. How strong is it?
Levels – virtual engine scene production "suggestions collection"
Levels – 虚幻引擎场景制作「建议收藏」
Ugui force refresh of layout components
go template with...end遍历用法
UDP RTP packet frame loss
Is tongdaxin stock software reliable? Is it safe to trade stocks on it?
Namespace and scope
From jsonpath and XPath to spl
How to install SSL certificates in Microsoft Exchange 2010
洛谷_P1303 A*B Problem_高精度计算
[unity Editor Extension Foundation], editorguilayout (I)