当前位置: 首页 > news >正文

网站建设商城扬州工程建设信息网站

网站建设商城,扬州工程建设信息网站,wordpress 图片显示不了,做饲料机的川工网站一、Hystrix Turbine简介 看单个的Hystrix Dashboard的数据并没有什么多大的价值#xff0c;要想看这个系统的Hystrix Dashboard数据就需要用到Hystrix Turbine。Hystrix Turbine将每个服务Hystrix Dashboard数据进行了整合。Hystrix Turbine的使用非常简单#xff0c;只需要…一、Hystrix Turbine简介 看单个的Hystrix Dashboard的数据并没有什么多大的价值要想看这个系统的Hystrix Dashboard数据就需要用到Hystrix Turbine。Hystrix Turbine将每个服务Hystrix Dashboard数据进行了整合。Hystrix Turbine的使用非常简单只需要引入相应的依赖和加上注解和配置就可以了。 二、准备工作 本文使用的工程为上一篇文章的工程在此基础上进行改造。因为我们需要多个服务的Dashboard所以需要再建一个服务取名为service-lucy它的基本配置同service-hi具体见源码,在这里就不详细说明。 三、创建service-turbine 引入相应的依赖 dependenciesdependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-eureka-client/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-web/artifactId/dependencydependencygroupIdorg.springframework.boot/groupIdartifactIdspring-boot-starter-actuator/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-hystrix/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-hystrix-dashboard/artifactId/dependencydependencygroupIdorg.springframework.cloud/groupIdartifactIdspring-cloud-starter-netflix-turbine/artifactId/dependency/dependencies 在其入口类ServiceTurbineApplication加上注解EnableTurbine开启turbineEnableTurbine注解包含了EnableDiscoveryClient注解即开启了注册服务。 SpringBootApplicationEnableEurekaClientEnableDiscoveryClientRestControllerEnableHystrixEnableHystrixDashboardEnableCircuitBreakerEnableTurbinepublic class ServiceTurbineApplication {/*** http://localhost:8764/turbine.stream*/public static void main(String[] args) {SpringApplication.run( ServiceTurbineApplication.class, args );}} 配置文件application.yml spring:application.name: service-turbineserver:port: 8769security.basic.enabled: falseturbine:aggregator:clusterConfig: default # 指定聚合哪些集群多个使用,分割默认为default。可使用http://.../turbine.stream?cluster{clusterConfig之一}访问appConfig: service-hi,service-la ### 配置Eureka中的serviceId列表表明监控哪些服务clusterNameExpression: new String(default)# 1. clusterNameExpression指定集群名称默认表达式appName此时turbine.aggregator.clusterConfig需要配置想要监控的应用名称# 2. 当clusterNameExpression: default时turbine.aggregator.clusterConfig可以不写因为默认就是default# 3. 当clusterNameExpression: metadata[cluster]时假设想要监控的应用配置了eureka.instance.metadata-map.cluster: ABC则需要配置同时turbine.aggregator.clusterConfig: ABCeureka:client:serviceUrl:defaultZone: http://localhost:8761/eureka/配置文件注解写的很清楚。 Turbine演示 ​ 依次开启server、service-hi、service-la、service-turbine工程。 打开浏览器输入http://localhost:8769/turbine.stream ​ 依次请求 http://localhost:8762/hi?namewhhttp://localhost:8763/hi?namewh​ 打开:http://localhost:8763/hystrix,输入监控流http://localhost:8769/turbine.stream ​ 可以看到这个页面聚合了2个service的hystrix dashbord数据。
http://www.hkea.cn/news/14550842/

相关文章:

  • 惠州行业网站设计方案百度seo推广首选帝搜软件
  • 做站长工具网站免费的app软件下载安装
  • 通辽做网站有没有做网站放到百度上需要什么
  • 做网站备案不少天wordpress wp head
  • 录音转文字网站开发重庆营销型网站开发
  • 台州网络建站模板管理系统是网站吗
  • 网站开发包括几个部分南京公司建设网站
  • 寿光网站建设推广互联网现在的发展趋势
  • 深圳住房和建设局网站全景看房福田网站 建设seo信科
  • 企业网站搜索优化外包手机网页禁止访问怎么解决
  • 苏州住房和城乡建设局网站制作网页一般用什么来设计分割页面
  • 厦门首屈一指的网站建设公司wordpress主题演示数据库
  • 网站被墙的原因超级装家装官网
  • 常州建网站网站开发服务费算无形资产吗
  • 网站建设的用户体验建设网站以什么为导向
  • 阿里巴巴做国际网站多少钱手表网站 欧米茄
  • 网站主题定位临海做网站
  • 部队网站源码广州微网站建设
  • google移动网站建站十大原则两台wordpress共享mysql
  • 中国建设工程招标网站化妆培训网站模板
  • 招生平台网站开发vs能建设网站吗
  • 怎么优化网站的单个关键词排名服装设计官网
  • 网站建设要做什么会计科目南宁网站建公司电话号码
  • 一个人做网站现实吗图标设计免费logo
  • 网站在建设中页面网站搭建培训学校
  • 郑州做网站公司电话优化网站公司外包
  • 企业综合查询网站品牌营销策划服务
  • 好看简单易做的网站yw193can未满十免费观看
  • 纪检网站建设方案常德市建设局网站
  • 柏乡县建设局网站网站怎么添加假备案号