On Bowen learned Hystrix Board to monitor a single application, in addition to monitoring points /trubine.stream a Turbine is provided to monitor the use of the cluster. In complex distributed systems, nodes with the same services often need to deploy hundreds or even thousands, many times, operation and maintenance personnel wants to bring the same service node status to show up in the form of a whole cluster, so you can better grasp the status of the entire system. For this purpose, Netflix provides an open source program (Turbine) to provide the content of a plurality of data aggregation hystrix.stream source Dashboard for display.
A: Build Turbine Project
1.pom.xml
2. Start class
3. Configuration
- turbine.appConfig: serviceId list configuration in Eureka, which demonstrate that the monitoring service
- turbine.aggregator.clusterConfig: specify which clusters polymerization, using a plurality of "," split default is default. Can use http:? //.../Turbine.stream cluster = {visit one of clusterConfig}
- turbine.clusterNameExpression: 1. clusterNameExpression specify the cluster name, the default expression appName;
In this case: turbine.aggregator.clusterConfig need to configure the application name you want to monitor;
2. When clusterNameExpression: When default, turbine.aggregator.clusterConfig can not write, because the default is the default;
3. When clusterNameExpression: metadata [ 'cluster'] when, suppose you want to monitor applications configured eureka.instance.metadata-map.cluster: ABC, you need to configure, while turbine.aggregator.clusterConfig: ABC
II: additional preparation
Prepare ribbon-consumer1, ribbon-consumer2 two services.
1.ribbon-consumer1
2.ribbon-consumer2
the whole frame:
The above configuration, start the registration center, the caller to start the service, start the service consumer, start Turbine, as follows:
访问 http://localhost:9004/turbine.stream
Refresh HTTP: // localhost: 9003 / queryUser / 5 , HTTP: // localhost: 9002 / queryUser / 5 ; let the monitor data information;
Access: HTTP: // localhost: 9004 / hystrix , red box enter the address, click on the Monitor Stream
Micro-channel public number:
JAVA program ape growth path
Resource sharing, recording program ape growing little by little. Focus on Java, Spring, SpringBoot, SpringCloud, distributed, slightly services.