The Hystrix timeout of XXms for the command XX

The Hystrix timeout of XXms for the command XX-XX is set lower than the combination of the Ribbon read and connect timeout

原因:

(ribbon.ConnectTimeout + ribbon.ReadTimeout) * (ribbon.MaxAutoRetries + 1) * (ribbon.MaxAutoRetriesNextServer + 1)

告警意识是  你的hytrix的超时时间比 Ribbon的 connect时间+read timeout的时间还长。会失去意义。

可以修改如下:

  ribbon.MaxAutoRetries: 0  #不重试
  ribbon.MaxAutoRetriesNextServer: 0 #不尝试下一台机器

评论

暂无评论