11.4. FAQ
11.4.1.Feign请求超时 方法一,修改配置是让Hystrix的超时时间改为5秒 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 5000 方法二,修改配置,禁用Hystrix的超时时间 hystrix.command.default.execution.timeout.enabled: false 方法三,修改配置,用于索性禁用feign的hystrix。 feign.hystrix.enabled: false 11.4.2.已停止的微服务节点注销慢或不注销 由于 Eureka Server 清理无效节点周期长默认为90秒,可能会遇到微服务注销慢甚至不注销的问题。 Eureka Server 配置,注意仅适合开发环境。 # 设为false, 关闭自我保护, 从而保证会注销微服务 eureka.server.enable-self-preservation=false # 清理间隔(单位毫秒,默认是60 * 1000) eureka.server.eviction-interva...
