FeignClient 在 SpringBoot 应用程序中出现“503 服务不可用”错误

问题描述

我有两个简单的服务,服务 A 正在使用 feignclient 调用服务 B。 这两个服务真的很简单,但是我在调​​用服务 B 时经常收到 503 Service Unavailable 错误。第一次调用总是有效,但是这个错误发生在第二次调用时。 没有特殊配置,都是使用认配置。有没有人知道如何解决这个问题?

feign:
  httpclient:
    connection-timeout: 10000
    read-timeout: 60000
    max-connections: 100
    max-connections-per-route: 100
    enabled: true
  client:
    config:
      default:
        connect-timeout: 60000
        read-timeout: 60000
        logger-level: full
  hystrix:
    enabled: true
hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: false
        isolation:
          thread:
            timeoutInMilliseconds: 10000
    others:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 3000

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)