wanzhitao18
wanzhitao18
采纳率100%
2021-03-04 13:20

nacos服务注册时好时坏的问题?

5
已结题
,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:57:16.146  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:57:26.158  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:57:36.171  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:57:46.183  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:57:56.195  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:58:06.205  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:58:16.215  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : removed ips(1) service: DEFAULT_GROUP@@xpxDesign-render-dev -> [{"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"instanceId":"172.16.0.83#8091#DEFAULT#DEFAULT_GROUP@@xpxDesign-render-dev","ip":"172.16.0.83","ipDeleteTimeout":30000,"metadata":{"preserved.register.source":"SPRING_CLOUD"},"port":8091,"serviceName":"DEFAULT_GROUP@@xpxDesign-render-dev","weight":1}]
2021-03-04 11:58:16.215  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:58:26.227  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:58:36.239  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:58:46.253  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:58:56.267  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:06.280  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:16.293  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:26.306  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:36.319  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:46.332  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 11:59:50.877  INFO 74395 --- [nio-8090-exec-7] com.miju.backend.util.WebControllerAop   : execution(Result com.miju.backend.controller.DesignController.getDesignListByUserId(DesignListVO,BindingResult))
2021-03-04 11:59:50.886  INFO 74395 --- [nio-8090-exec-7] c.m.backend.controller.DesignController  : 用户方案获取成功
2021-03-04 11:59:56.344  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 12:00:06.357  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 12:00:16.369  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
2021-03-04 12:00:26.379  INFO 74395 --- [.naming.updater] com.alibaba.nacos.client.naming          : current ips:(0) service: DEFAULT_GROUP@@xpxDesign-render-dev -> []
  • 点赞
  • 收藏
  • 复制链接分享

10条回答

  • weixin_45476644 weixin_45476644 1月前

    唔。。。你配置文件类有加负载均衡的注解么?

    点赞 1 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
                <version>0.9.0.RELEASE</version>
            </dependency>
    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    解决了

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    我本地没有问题,主要是工程发在dev环境有这个问题

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    加我微信吧 15901938913

    点赞 评论 复制链接分享
  • qq_34370249 qq_34370249 1月前

    你可以把你的配置文件也贴出来,看一下。

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    没有啊

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    点赞 评论 复制链接分享
  • wanzhitao18 wanzhitao18 1月前

    current ips:(0)注册中心 服务会自己消失;  过一段时间又会自己出现!

    当出现的时候正常能调用通过。 当服务注册消失的时候会出现Load balancer does not have available server for client 错误

    点赞 评论 复制链接分享

为你推荐