Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
17 changes: 0 additions & 17 deletions
17
...vice-hystrix-turbine/src/main/java/com/itmuch/cloud/study/turbine/TurbineApplication.java
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...rvice-hystrix-turbine/src/main/java/com/minbo/cloud/study/turbine/TurbineApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.minbo.cloud.study.turbine; | ||
|
||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.builder.SpringApplicationBuilder; | ||
import org.springframework.cloud.netflix.turbine.EnableTurbine; | ||
|
||
/** | ||
* 在复杂的分布式系统中,相同服务的节点经常需要部署上百甚至上千个,很多时候,运维人员希望能够把相同服务的节点状态以一个整体集群的形式展现出来, | ||
* 这样可以更好的把握整个系统的状态。为此,Netflix提供了一个开源项目(Turbine)来提供把多个hystrix.stream的内容聚合为一个数据源供Dashboard展示。 | ||
* | ||
* 通过@EnableTurbine接口,激活对Turbine的支持。 | ||
*/ | ||
@SpringBootApplication | ||
@EnableTurbine | ||
public class TurbineApplication { | ||
public static void main(String[] args) { | ||
new SpringApplicationBuilder(TurbineApplication.class).web(true).run(args); | ||
} | ||
} |