Francis
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
sentinel规则持久化

sentinel规则持久化

官网:https://github.com/alibaba/Sentinel/wiki/动态规则扩展 1 客户端内存的规则1.1 规则的存储 1.2 规则的获取 2 Dashboard规则管理2.1 三种模式 推送模式 说明 优点 缺点 原始模式 API将规则推送至客户端并直接更新到内存中,扩展写数据源(WritableDateSource) 简单,无任何依赖 不保证一致性;规则保存在内
2023-03-26
spring框架 > springcloud > sentinel
#java #springcloud #sentinel
sentinel源码解析

sentinel源码解析

2023-03-26
spring框架 > springcloud > sentinel
#java #springcloud #sentinel
Zookeeper源码解析

Zookeeper源码解析

1 Zookeeper Server启动流程 2 客户端实例化与创建节点 3 Zookeeper源码分析之查询数据与watch 4 集群启动与Leader选举 5 Learn与Leader数据同步 6 ZAB协议处理事务请求
2023-03-26
中间件 > Zookeeper
#Zookeeper
Zookeeper实现注册中心

Zookeeper实现注册中心

1 Zookeeper实现注册中心1.1 项目准备创建一个父工程,名称为handwritten-zookeeper-discovery,并在父工程下创建两个Spring Boot项目,分别为order-service和user-service,并在order-service中准备一个OrderController。 123456789@RestController@RequestMapping(&
2023-03-25
中间件 > Zookeeper
#Zookeeper
Zookeeper实现配置中心

Zookeeper实现配置中心

1 本地配置原理https://docs.spring.io/spring-boot/docs/2.7.2/reference/htmlsingle/#features.external-config (1)加载application.properties文件 123PropertySourceLoader#load() ->PropertiesPropertySourceLoader#lo
2023-03-25
中间件 > Zookeeper
#Zookeeper
Zookeeper集群

Zookeeper集群

1 初识Zookeeper集群官网:https://zookeeper.apache.org/doc/current/zookeeperOver.html#sc_designGoals 1.1 zk集群中的角色 客户端是可以连接任意一个Zookeeper Server Cluster中的机器的。 Leader:只能有一个,可以处理客户端的读写请求。 Follower:可以有多个,只能处理客户端的读
2023-03-19
中间件 > Zookeeper
#Zookeeper
sentinel规则详解

sentinel规则详解

面向分布式、多语言异构化服务架构的流量治理组件 1 Sentinel入门小结 2 实时监控实时监控仅存储 5 分钟以内的数据,如果需要持久化,需要通过调用实时监控接口来定制。 注意:请确保 Sentinel 控制台所在的机器时间与自己应用的机器时间保持一致,否则会导致拉不到实时的监控数据。 3 簇点链路簇点链路(单机调用链路)页面实时的去拉取指定客户端资源的运行情况。它一共提供两种展示模式:一种
2023-03-19
spring框架 > springcloud > sentinel
#java #springcloud #sentinel
gateway

gateway

1 为什么需要网关(1)如果没有网关,各个微服务就需要对外暴露很多端口,访问不方便并且不安全 (2)如果没有网关,很多微服务都需要单独认证授权,比较麻烦 (3)有些微服务使用的是不同的通信协议,如果没有网关,则客户端访问变得很不方便 等等。。。 2 常见的网关产品https://landscape.cncf.io/ 3 Spring Cloud Gateway FeaturesBuilt o
2023-03-18
spring框架 > springcloud > gateway
#java #springcloud #gateway
sentinel入门

sentinel入门

面向分布式、多语言异构化服务架构的流量治理组件 https://sentinelguard.io/zh-cn/ 1 常见的容错方案就以B调用C服务为例,怎样避免B服务因为C服务的不可用而导致自己不可用 超时 ​ 限流 舱壁模式 断路器 https://martinfowler.com/bliki/CircuitBreaker.html 2 快速入门htt
2023-03-18
spring框架 > springcloud > sentinel
#java #springcloud #sentinel
Zookeeper高级特性

Zookeeper高级特性

1 Watchhttps://zookeeper.apache.org/doc/current/zookeeperProgrammers.html#ch_zkWatches 图解: 支持watch的命令 watch的注册基本上都是读事件 12345helpconfig [-c] [-w] [-s]get [-s] [-w] pathls [-s] [-w] [-R] pathstat [-w
2023-03-18
中间件 > Zookeeper
#Zookeeper
1…910111213…15

搜索

Hexo Fluid