alibaba / Sentinel

A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)
https://sentinelguard.io/
Apache License 2.0
22.45k stars 8.04k forks source link

[RFC] General extension mechanism for adaptive flow control strategies | 自适应策略抽象与扩展机制 #1889

Open sczyh30 opened 3 years ago

sczyh30 commented 3 years ago

Issue Description

Type: feature request

Describe what happened (or what feature you want)

A general extension mechanism for adaptive flow control strategies is needed, so that community could provide implementations of versatile adaptive algorithms (in different modules, not in sentinel-core) and users may introduce it on-demand.

sczyh30 commented 3 years ago

We may leverage the concepts of control theory and queueing theory.

E.g. some concepts from control theory:

To do this, a controller with the requisite corrective behavior is required. This controller monitors the controlled process variable (PV), and compares it with the reference or set point (SP). The difference between actual and desired value of the process variable, called the error signal, or SP-PV error, is applied as feedback to generate a control action to bring the controlled process variable to the same value as the set point. Other aspects which are also studied are controllability and observability. This is the basis for the advanced type of automation that revolutionized manufacturing, aircraft, communications and other industries. This is feedback control, which involves taking measurements using a sensor and making calculated adjustments to keep the measured variable within a set range by means of a "final control element", such as a control valve.

sczyh30 commented 3 years ago

cc @jasonjoo2010 @cdfive @linlinisme @louyuting @sentinel-group/sentinel-committers