当前位置:网站首页>Working principle of sentinel series (concept)
Working principle of sentinel series (concept)
2022-06-13 05:40:00 【codain】
Sentinel The core function of is mainly divided into three parts : Workflow 、 Data structure and current limiting algorithm , The architecture is as follows :

Pictured above , We can see that , The call link is Sentinel The main work flow of , It's made up of all kinds of Slot Of slots , Will be different Slot String together in a certain order ( In fact, it is the responsibility chain model ), So as to combine different functions , The function mentioned here is mainly current limiting 、 Downgrade 、 System protection ,Sentinel Each slot in the Slot All have different responsibilities , such as :LogSlot, Just look at the name , This slot is responsible for logging ,FlowSlot Is responsible for current limiting, etc , Responsibilities are relatively separated , Each module focuses on maintaining a function
stay Sentinel in , In fact, all resources have corresponding resource names , That is to say resourceName, Each time a resource is accessed, a corresponding Entry object , Creating Entry Colleague , A series of functional slots will also be created (slot chain), These slots form a chain of responsibility , And each has a different responsibility , As follows :
1、NodeSelectorSlot: Collect the call path of resources , Store call stack in dressing structure , It is used to limit current and degrade according to the calling path
2、ClusterBuilderSlot: It is responsible for creating cluster nodes with resource name dimension statistics ClusterNode, Create each level ClusterNode Press call source prigin The division of StatisticNode
3、LogSlot: In case of current limiting 、 Fuse 、 Be responsible for recording logs during system protection
4、AuthoritySlot: Access control , Support blacklist and whitelist strategies
5、SystemSlot: Control the total inlet flow , The limiting conditions are, in turn, total QPS、 Bus number 、RT threshold 、 The operating system is currently load、 The operating system is currently CPU utilization
6、FlowSlot: According to the current limiting rules and each Node Current limiting judgment shall be conducted for the same level data in
7、DegradeSlot: According to the fusing rules and each Node Service degradation based on the statistics in
8、StatisticSlot: Count the number of requests from different dimensions 、 Passing number 、 Current limiting number 、 Number of threads, etc runtime Information , These data are stored in DefaultNode、OriginNode and ClusterNode in
边栏推荐
- Fast power code
- Three paradigms of MySQL
- Agile conflicts and benefits
- 若依框架=》如何设置导入导出模板全局为文本格式(解决科学计数问题)
- Use of natural sorting comparable
- How to Algorithm Evaluation Methods
- Metartc4.0 integrated ffmpeg compilation
- No assessment summary
- MySQL installation in Linux Environment
- Windbos common CMD (DOS) command set
猜你喜欢

Mysql database crud operation

Case - count the number of occurrences of each string in the string

The reason why the process cannot be shut down after a spark job is executed and the solution

ZABBIX proxy, sender (without agent monitoring), performance optimization

Hainan University Postgraduate Entrance Examination electronic information (085400) landing experience

Case -- the HashSet set stores the student object and traverses

890. Find and Replace Pattern

Case - the ArrayList collection stores student objects and traverses them in three ways

A simple recursion problem of linked list

Validation set: ‘flowable-executable-process‘ | Problem: ‘flowable-servicetask-missing-implementatio
随机推荐
Randomly fetch data from the list
2020 personal annual summary
12 error end event and terminateendevent of end event
MySQL built-in functions
为什么那么多人讨厌A-Spice
2021.9.30学习日志-postman
Float type value range
13 cancelendevent of a flowable end event and compensationthrowing of a compensation event
Explanation of service registration and discovery API of Nacos series
2 first experience of drools
Use of mongodb
Wampserver (MySQL) installation
2021.9.29学习日志-Restful架构
Shell instance
Case - count the number of occurrences of each string in the string
MySQL log management and master-slave replication
MySQL fuzzy query and sorting by matching degree
若依框架=》如何设置导入导出模板全局为文本格式(解决科学计数问题)
Understanding of speech signal framing
Building a stand-alone version of Nacos series