Ver código fonte

broker 流程修改问题修复

huangzhiyong 8 anos atrás
pai
commit
3da81e7687

+ 1 - 1
hos-arbiter/src/main/resources/application.yml

@ -22,7 +22,7 @@ arbiter:
  timer:
    period: 10000
  central:
    url: localhost:15555
    url: localhost:9020
  tenant:
    name: jkzl

+ 2 - 2
hos-broker/src/main/java/com/yihu/hos/broker/common/scheduler/MonitorScheduler.java

@ -27,11 +27,11 @@ public class MonitorScheduler {
    @Scheduled(cron = "0 0/1 * * * ?") //每分钟执行一次
    public void statusCheck() {
        System.out.println("每分钟执行一次。开始============================================");
        logger.debug("每分钟执行一次。开始============================================");
        //TODO 采集服务器健康监控指标数据 statusTask.healthCheck();
        collectEnvHealth();
        collectServiceHealth();
        System.out.println("每分钟执行一次。结束。");
        logger.info("每分钟执行一次。结束。");
    }
    /**

+ 7 - 1
hos-broker/src/main/resources/application.yml

@ -33,9 +33,12 @@ spring:
  camel.gateway:
    ip: localhost
    port: 8066
log:
  path: D://logs/logback1
  level: info
hos:
  filesystem:
    url: 127.0.0.1:9010/dfs/file
    url: http://127.0.0.1:9010/dfs/file
  arbiter:
    enable: true
    url: http://localhost:10135
@ -73,6 +76,9 @@ spring:
  camel.gateway:
    ip: localhost
    port: 8066
log:
  path: D://logs/logback2
  level: info
hos:
  filesystem:
    url: 127.0.0.1:9010/dfs/file