上一页 1 2 3 4 5 6 ··· 36 下一页
摘要: https://github.com/alibaba/Sentinel/wiki/%E7%86%94%E6%96%AD%E9%99%8D%E7%BA%A7 除了流量控制以外,对调用链路中不稳定的资源进行熔断降级也是保障高可用的重要措施之一。 我们需要对不稳定的弱依赖服务调用进行熔断降级,暂时切断不稳 阅读全文
posted @ 2021-12-05 16:05 残星 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6 直接拒绝 直接拒绝(RuleConstant.CONTROL_BEHAVIOR_DEFAULT)方式是默认的流量控制方式,当QPS超过任意规则的 阅读全文
posted @ 2021-12-04 23:56 残星 阅读(116) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6 NodeSelectorSlot 中记录了资源之间的调用链路,这些资源通过调用关系,相互之间构成一棵调用树。这棵树的根节点是一个名字为 mach 阅读全文
posted @ 2021-12-04 10:58 残星 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 使用jmeter工具之前需要安装java.并配置好java的环境变量。 http://jmeter.apache.org/download_jmeter.cgi (Windows版本下载zip,Linux版本下载tgz)一般下载Binaries,Source含有源码; https://dlcdn.a 阅读全文
posted @ 2021-12-03 18:58 残星 阅读(58) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6 当两个资源之间具有资源争抢或者依赖关系的时候,这两个资源便具有了关联。比如对数据库同一个字段的读操作和写操作存在争抢,读的速度过高会影响写得速度 阅读全文
posted @ 2021-12-03 17:23 残星 阅读(128) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6 流量控制(flow control),其原理是监控应用流量的 QPS 或并发线程数等指标,当达到指定的阈值时对流量进行控制,以避免被瞬时的流量高 阅读全文
posted @ 2021-12-02 14:10 残星 阅读(894) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/spring-cloud-alibaba/wiki/Sentinel 如果要在您的项目中引入 Sentinel,使用 group ID 为 com.alibaba.cloud 和 artifact ID 为 spring-cloud-starte 阅读全文
posted @ 2021-11-30 16:45 残星 阅读(96) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%8E%A7%E5%88%B6%E5%8F%B0 下载最新版本的控制台 jar 包 https://github.com/alibaba/Sentinel/releases https://github.com/ 阅读全文
posted @ 2021-11-29 15:45 残星 阅读(274) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/Sentinel/wiki/%E6%B3%A8%E8%A7%A3%E6%94%AF%E6%8C%81 https://blog.didispace.com/spring-cloud-alibaba-sentinel-2-5/ @SentinelR 阅读全文
posted @ 2021-11-27 16:40 残星 阅读(156) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/spring-cloud-alibaba/wiki/Sentinel Sentinel 介绍 随着微服务的流行,服务和服务之间的稳定性变得越来越重要。 Sentinel 以流量为切入点,从流量控制、熔断降级、系统负载保护等多个维度保护服务的稳定性 阅读全文
posted @ 2021-11-20 17:50 残星 阅读(111) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jdbc</artifactId> <version>2.5.6</version> </dependency> 阅读全文
posted @ 2021-11-15 23:26 残星 阅读(416) 评论(0) 推荐(0) 编辑
摘要: <!-- mysql驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.20</version> </dependency> <dependen 阅读全文
posted @ 2021-11-14 20:09 残星 阅读(682) 评论(0) 推荐(0) 编辑
摘要: https://github.com/alibaba/spring-cloud-alibaba/wiki/Nacos-config 首先我们来看一下,微服务架构下关于配置文件的一些问题: 配置文件相对分散。在一个微服务架构下,配置文件会随着微服务的增多变的越来越多,而且分散在各个微服务中,不好统一配 阅读全文
posted @ 2021-11-09 14:37 残星 阅读(515) 评论(0) 推荐(0) 编辑
摘要: package com.wsm.order.interceptor.feign; import feign.RequestInterceptor; import feign.RequestTemplate; import java.util.UUID; public class FeignAuthR 阅读全文
posted @ 2021-11-08 22:52 残星 阅读(479) 评论(0) 推荐(0) 编辑
摘要: package com.wsm.order.config; import feign.Contract; import feign.Logger; import feign.Request; import org.springframework.context.annotation.Bean; im 阅读全文
posted @ 2021-11-08 21:33 残星 阅读(446) 评论(0) 推荐(0) 编辑
摘要: package com.wsm.order.config; import feign.Contract; import feign.Logger; import org.springframework.context.annotation.Bean; import org.springframewo 阅读全文
posted @ 2021-11-08 00:20 残星 阅读(168) 评论(0) 推荐(0) 编辑
摘要: OpenFeign提供了日志打印功能,我们可以通过配置来调整日恙级别,从而了解Feign 中 Http请求的细节。 说白了就是对Feign接口的调用情况进行监控和输出 日志级别 NONE:默认的,不显示任何日志; BASIC:仅记录请求方法、URL、响应状态码及执行时间; HEADERS:除了BAS 阅读全文
posted @ 2021-11-07 12:58 残星 阅读(405) 评论(0) 推荐(0) 编辑
摘要: application.xml server: port: 8040 #应用名称 (nacos 会将该名称当作服务名称) spring: application: name: order-openfeign-service cloud: nacos: # server-addr: 127.0.0.1 阅读全文
posted @ 2021-11-07 12:19 残星 阅读(121) 评论(0) 推荐(0) 编辑
摘要: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2021-11-06 18:47 残星 阅读(2220) 评论(0) 推荐(0) 编辑
摘要: ribbon有7种负载均衡策略可供选择: 1、随机策略——RandomRule 2、轮询策略——RoundRobinRule注:Ribbon默认策略 3、重试策略——RetryRule 4、最低并发策略——BestAvailableRule 5、可用过滤策略——AvailabilityFilteri 阅读全文
posted @ 2021-11-02 23:58 残星 阅读(5354) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 36 下一页