2020年3月2日
摘要:
spring boot actuator 监控数据可视化,spring boot admin springboot量身打造的监控管理界面 jvm监控 metrix,heapdump,threaddump java自带的监控工具,jconsole,jvisualvm GC日志分析 -Xmx 5m -X
阅读全文
posted @ 2020-03-02 19:47
清浊
阅读(353)
推荐(0)
摘要:
1、定位微服务出错。 2、定位微服务性能问题。 调用链监控原理 trace表,cs client sent ,sr server recieve,ss server sent,cr client recieve id span_id pspan_id service_name api stage t
阅读全文
posted @ 2020-03-02 08:00
清浊
阅读(416)
推荐(0)
2020年3月1日
摘要:
1、配置如下 spring: cloud: nacos: config: server-addr: 127.0.0.1:8848 file-extension: yml shared-dataids: common1.yaml,common2.yaml refreshable-dataids: co
阅读全文
posted @ 2020-03-01 10:55
清浊
阅读(528)
推荐(0)
2020年2月29日
摘要:
spring cloud gateway未来第二代网关,基于Netty,Reactor以及WefFlux构建 性能zuul的1.6倍,功能强大内置了很多实用功能,比如转发,监控,限流等。不是Servlet编程模型,有一定的适应成本,不在Servlet容器下工作,不能打成war包,不支持springb
阅读全文
posted @ 2020-02-29 11:43
清浊
阅读(323)
推荐(0)
2020年2月25日
摘要:
windows下构建 http://rocketmq.apache.org/release_notes/release-notes-4.5.1/ ,下载 Binary 系统环境变量配置 变量名:ROCKETMQ_HOME 变量值:MQ解压路径\MQ文件夹名 启动NAMESERVER Cmd命令框执行
阅读全文
posted @ 2020-02-25 21:56
清浊
阅读(643)
推荐(0)
2020年2月20日
摘要:
1、超时 通过超时来释放资源,这样就不容易被拖死,只要释放够快。 2、限流 通过评估来限制流量,防止微服务被拖死。 3、仓壁模式 资源有对立线程池,拥有自己拒绝策略。资源之间不相互影响。 4、断路器模式 监控错误率或者错误次数达到一定阈值,就跳闸,就认为依赖微服务不可用,监控加开关 二 使用sent
阅读全文
posted @ 2020-02-20 21:06
清浊
阅读(1739)
推荐(0)
2020年2月19日
摘要:
本文内容主要来自 http://www.itmuch.com/spring-cloud-sum/feign-problems/ 1、什么是Feign 声明式http客户端 2、如何使用 加依赖 <dependency> <groupId>org.springframework.cloud</grou
阅读全文
posted @ 2020-02-19 21:58
清浊
阅读(1500)
推荐(0)
摘要:
1、java代码配置 单独建包,不然会产生spring父子上下文重叠,导致该配置为全局配置 package configuration;import com.netflix.loadbalancer.IRule;import com.netflix.loadbalancer.RandomRule;i
阅读全文
posted @ 2020-02-19 15:23
清浊
阅读(690)
推荐(0)
2020年2月18日
摘要:
服务器负载均衡就是 nignx 客户端负载均衡 客户端负责,负载均衡规则,从服务列表里面选择具体的服务实例。 从nacos服务发现组件上,利用简单的随机负载均衡算法来获取服务地址。 List<ServiceInstance> instances = discoveryClient.getInstan
阅读全文
posted @ 2020-02-18 19:39
清浊
阅读(414)
推荐(0)
摘要:
1、服务发现组件有如下列表 id service_name ip port status last_heartbeat_time 1 user-center 127.0.0.1 8080 up timestamp1 2 content-center 127.0.0.1 8080 up timesta
阅读全文
posted @ 2020-02-18 14:23
清浊
阅读(1829)
推荐(0)