zoukankan      html  css  js  c++  java
  • spring cloud服务注册与发现无法发现的可能原因

    1、注册中心服务端默认90秒检测一次,看服务是否还存活,不存活则删除掉服务,还存活则继续注册上去

    2、

    spring:
      profiles: dev
      cloud:
        config:
          name: cleanup-center
          profile: dev,discoveryClient
          discovery:
            enabled: true
            service-id: akucun-framework-config-server
    eureka:
      client:
        service-url:
          defaultZone: http://merchant:123456@192.168.120.102:8761/eureka/
        register-with-eureka: true
        fetch-registry: true
    #    healthcheck:
    #      enabled: true#客户端默认30秒心跳检测一次(服务端已有默认90面检测一次),客户端再增加是为了保护客户端服务。如果启用需注意,服务启动后30秒才会注册到注册中心上去
      instance:
        prefer-ip-address: true
        instance-id: ${spring.cloud.client.ip-address}:${server.port}
    

        

  • 相关阅读:
    去除文件中的空行
    数据分析 numpy matplotlib
    程序员
    c#
    java
    微信小游戏
    小游戏开发手册
    模板
    微信小程序小程序代码构成(.json .js .wxss .wxml)
    微信程序
  • 原文地址:https://www.cnblogs.com/wzk-0000/p/10899569.html
Copyright © 2011-2022 走看看