Просмотр исходного кода

update message-service application.yml

reghao 8 месяцев назад
Родитель
Сommit
b8b704a4e7

+ 2 - 2
message/message-service/src/main/java/cn/reghao/tnb/message/app/rabbit/listener/RabbitListeners.java

@@ -79,7 +79,7 @@ public class RabbitListeners {
     )
     public void accessLogConsumer(@Payload String msg) {
         AccessLog accessLog = JsonConverter.jsonToObject(msg, AccessLog.class);
-        log.info("{} -> {}", accessLog.getRequestId(), accessLog.getRequestUrl());
+        //log.info("{} -> {}", accessLog.getRequestId(), accessLog.getRequestUrl());
     }
 
     @RabbitListener(bindings =@QueueBinding(
@@ -89,6 +89,6 @@ public class RabbitListeners {
     )
     public void runtimeLogConsumer(@Payload String msg) {
         RuntimeLog runtimeLog = JsonConverter.jsonToObject(msg, RuntimeLog.class);
-        log.info("{} -> {}:{}", runtimeLog.getApp(), runtimeLog.getApp(), runtimeLog.getHost());
+        //log.info("{} -> {}:{}", runtimeLog.getApp(), runtimeLog.getApp(), runtimeLog.getHost());
     }
 }

+ 4 - 2
message/message-service/src/main/resources/application.yml

@@ -34,11 +34,13 @@ hystrix:
   dashboard:
     proxy-stream-allow-list: "localhost"
 turbine:
-  # 需要收集信息的服务名,即注册中心服务名称
+  # 指定需要收集信息的服务名(注册到 EurekaServer 中的名字)
   appConfig: user-service
   aggregator:
     cluster-config: default
   # 指定集群名称
+  # 当服务实例非常多时可以使用多个 Turbine 来构建不同的聚合集群,本参数则用于区分这些不同的集群
+  # 同时本参数可以在 HystrixDashboard 中用来定位不同的聚合集群,只需在 Hystrix Stream 的 URL 中通过 cluster 参数来指定即可
   cluster-name-expression: new String("default")
-  # 同一主机上的服务通过主机名和端口号的组合来进行区分,默认以host来区分
+  # 同一主机上的服务通过主机名和端口号的组合来进行区分,默认以 host 来区分不同的服务
   combine-host-port: true