首页 > TAG信息列表 > prioritized

Sentinel源码之ClusterBuilderSlot解析

ClusterBuilderSlot解析 ClusterBuilderSlot:则用于存储资源的统计信息以及调用者信息,例如该资源的 RT, QPS, thread count 等等,这些信息将用作为多维度限流,降级的依据; //NodeSelectorSlot.entry() @Override public void entry(Context context, ResourceWrapper resourceWrapper

Sentinel源码之Slot分析

StatisticSlot StatisticSlot 是 Sentinel 最为重要的类之一,用于根据规则判断结果进行相应的统计操作。 entry 的时候:依次执行后面的判断 slot。每个 slot 触发流控的话会抛出异常(BlockException的子类)。若有 BlockException抛出,则记录 block 数据;若无异常抛出则算作可通过(pass),记

Sentinel 源码分析(一)

版本: <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> <version>2.2.5.RELEASE</version> 在spring.factories中: org.springframework.boot.autoconfigure.EnableAutoConf