我们正在使用netflix turbine从群集中获取数据并在hystrix仪表板上显示。
我有一个名为 PROD 的群集,只有一个节点( 192.168.33.17 ),其中java应用程序(hystrix)在端口8989上运行。
我们有涡轮节点,我们有以下配置:
config.properties文件:
turbine.aggregator.clusterConfig=PROD
turbine.instanceUrlSuffix.PROD=/hystrix.stream
turbine.ConfigPropertyBasedDiscovery.PROD.instances=192.168.33.17:8989/hystrix-examples-webapp
InstanceDiscovery.impl=com.netflix.turbine.discovery.ConfigPropertyBasedDiscovery
并放置使用JVM属性指定的config.properties文件 java -Darchaius.configurationSource.additionalUrls = file:///home/vagrant/config.properties -jar start.jar
当我们使用
直接访问节点数据时curl http://192.168.33.17:8989/hystrix-examples-webapp/hystrix.stream
然后响应是正确的,我们可以在仪表板上看到。
但是当我们使用涡轮机做同样的事情时,我们无法在仪表板上看到任何响应,尽管我们正在获得ping响应
curl http://192.168.33.13:8080/turbine/turbine.stream
回复:ping
涡轮机日志:
2016-08-22 17:40:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 1
2016-08-22 17:40:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-08-22 17:40:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:1, hosts down: 0
2016-08-22 17:41:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 1
2016-08-22 17:41:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-08-22 17:41:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:1, hosts down: 0
2016-08-22 17:42:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 1
2016-08-22 17:42:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-08-22 17:42:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:1, hosts down: 0
2016-08-22 17:43:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 1
2016-08-22 17:43:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-08-22 17:43:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:1, hosts down: 0
2016-08-22 17:44:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:260 [InstanceObservable$1] [run]: Retrieved hosts from InstanceDiscovery: 1
2016-08-22 17:44:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:272 [InstanceObservable$1] [run]: Found hosts that have been previously terminated: 0
2016-08-22 17:44:11 INFO com.netflix.turbine.discovery.InstanceObservable$1:289 [InstanceObservable$1] [run]: Hosts up:1, hosts down: 0
20
那么,我们是否缺少任何配置?