爲什麼使用 Turbine
使用 turbine
是用來分佈式環境下統一服務的各個實例的hystrix信息。
一種特殊的導致 Turbine 無法獲取實例 hystrix.stream 數據
turbine 服務器會拋棄過時的數據。當服務器時間不一致時,你的數據可能永遠屬於過時數據,所以你的 turbine 永遠拿不到數據。
如何解決這種異常
- 同步時間。最簡單實用的處理方法
- 添加
turbine.InstanceMonitor.eventStream.skipLineLogic.enabled=false
到你的application.yml
或application.properties
參考
https://github.com/spring-cloud/spring-cloud-netflix/issues/820
https://stackoverflow.com/questions/28973994/spring-cloud-turbine-empty-stream