From d61a0496dcc775a1913dbf601ae65e1415209c04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E7=A5=A5?= <1366971433@qq.com>
Date: Fri, 18 Jan 2019 17:21:41 +0800
Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E5=A2=9E=E5=8A=A0Readme.md=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
spring-cloud/spring-cloud-hystrix/README.md | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/spring-cloud/spring-cloud-hystrix/README.md b/spring-cloud/spring-cloud-hystrix/README.md
index 3ffcfae..7598ea2 100644
--- a/spring-cloud/spring-cloud-hystrix/README.md
+++ b/spring-cloud/spring-cloud-hystrix/README.md
@@ -16,7 +16,7 @@
- 当一个服务的处理请求的失败次数大于阈值时候,熔断器开启,这时候所有的请求都会执行快速失败,是不会去调用实际的服务的;
- 当熔断器处于打开状态的一段时间后,熔断器处于半打开状态,这时候一定数量的请求回去调用实际的服务,如果调用成功,则代表服务可用了,熔断器关闭;如果还是失败,则代表服务还是不可用,熔断器继续关闭。
-
+
## 二、项目结构
@@ -28,7 +28,7 @@
+ eureka: 注册中心;
+ turbine:多个熔断器的聚合监控。
-
+
@@ -144,7 +144,7 @@ public List queryAllProducts() {
3.5 启动服务,访问http://localhost:8030/sell/products ,多次刷新查看熔断情况
-
+
#### 3.5 启动服务,访问 localhost:8030/hystrix
@@ -154,15 +154,15 @@ public List queryAllProducts() {
**登录页面**:
-
+
**监控页面**:
-
+
**关于各个参数的说明参见[官方wiki](https://github.com/Netflix-Skunkworks/hystrix-dashboard/wiki)提供的图**:
-
+
@@ -172,7 +172,7 @@ public List queryAllProducts() {
单体监控和聚合监控:
-
+
@@ -279,11 +279,11 @@ public class TurbineApplication {
在 localhost:8030/hystrix或者localhost:8030/hystrix(consumer和producer都集成了hystrix) 页面输入http://localhost:8040/turbine.stream,查看断路器聚合信息
-
+
**显示了不同服务单元(consumer,producer)的多个断路器信息:**
-
+
## 五、整合过程中可能出现的问题
@@ -322,4 +322,4 @@ public class TurbineApplication {
这种情况是熔断器所在的方法没有被调用,不是整合问题,这时候调用一下熔断器所在方法即可。
-
\ No newline at end of file
+
\ No newline at end of file